Skip to content

Instantly share code, notes, and snippets.

@Banhawy
Created February 6, 2019 14:40
Show Gist options
  • Save Banhawy/3a9197d961d9aac0fce773b3bb2fcfdc to your computer and use it in GitHub Desktop.
Save Banhawy/3a9197d961d9aac0fce773b3bb2fcfdc to your computer and use it in GitHub Desktop.
[Enable CORS on S3 Bucket] #aws #s3
# Go to the s3 bucket's Permissions -> CORS configurations and add the following policy
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>HEAD</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<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