-
-
Save tmilewski/bfaebc876cc116623e86 to your computer and use it in GitHub Desktop.
This file contains 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> | |
<AllowedOrigin>http://www.your-site.com</AllowedOrigin> | |
<AllowedOrigin>https://www.your-site.com</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<AllowedMethod>HEAD</AllowedMethod> | |
<AllowedMethod>DELETE</AllowedMethod> | |
<AllowedMethod>PUT</AllowedMethod> | |
<AllowedMethod>POST</AllowedMethod> | |
</CORSRule> | |
</CORSConfiguration> |
Great, thanks!
It works! Thanks!
Nice!
Great, thanks! Saved me hours.
Can I have multiple <AllowedOrigin>
s as long as they are all either https or http?
Can also <AllowedOrigin>*</AllowedOrigin>
if you want any site to be able to access the asset
Great, it's work for me. thanks
Thanks Dude you're the best
Thanks :) Very useful
In the new AWS S3 console, the configuration must be passed in JSON format,
that would be:
[
{
"AllowedOrigins": [
"https://www.your-site.com<",
"http://www.your-site.com<",
"http://checknews.openpolis.it",
"https://checknews.openpolis.it"
],
"AllowedMethods": [
"POST",
"GET",
"PUT"
]
}
]
In the new AWS S3 console, the configuration must be passed in JSON format,
that would be:[ { "AllowedOrigins": [ "https://www.your-site.com<", "http://www.your-site.com<", "http://checknews.openpolis.it", "https://checknews.openpolis.it" ], "AllowedMethods": [ "POST", "GET", "PUT" ] } ]
Thanks man!
@guglielmo it's still not working.Do you have another suggestion
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice thanks!