Last active
June 22, 2018 13:53
-
-
Save uriklar/cc1379f816a26b6d91e8bb8e9df91aa7 to your computer and use it in GitHub Desktop.
S3 bucket cors configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<!-- You can also use * to allow request from any origin --> | |
<AllowedOrigin>YOUR APP's URL</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<MaxAgeSeconds>3000</MaxAgeSeconds> | |
<!-- Autorization header if your using some kind of user authentication that uses it --> | |
<AllowedHeader>Authorization</AllowedHeader> | |
<!-- Content-Length header required for serving gzip using CloudFront --> | |
<AllowedHeader>Content-Length</AllowedHeader> | |
</CORSRule> | |
</CORSConfiguration> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment