Skip to content

Instantly share code, notes, and snippets.

@aa6my
Last active February 6, 2020 08:41
Show Gist options
  • Save aa6my/0d3294722b82465a38df7f1c687c6ff3 to your computer and use it in GitHub Desktop.
Save aa6my/0d3294722b82465a38df7f1c687c6ff3 to your computer and use it in GitHub Desktop.
S3CloudFront
CORS S3 + Cloudfront configuration
<CORSConfiguration>
	<CORSRule>
		<AllowedOrigin>*</AllowedOrigin>
		<AllowedMethod>POST</AllowedMethod>
		<AllowedMethod>GET</AllowedMethod>
		<AllowedMethod>PUT</AllowedMethod>
		<AllowedMethod>DELETE</AllowedMethod>
		<AllowedMethod>HEAD</AllowedMethod>
		<ExposeHeader>ETag</ExposeHeader>
		<MaxAgeSeconds>3000</MaxAgeSeconds>
		<AllowedHeader>*</AllowedHeader>
	</CORSRule>
</CORSConfiguration>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment