Skip to content

Instantly share code, notes, and snippets.

@harssh-sparkway
Created March 7, 2014 12:13
Show Gist options
  • Save harssh-sparkway/9410396 to your computer and use it in GitHub Desktop.
Save harssh-sparkway/9410396 to your computer and use it in GitHub Desktop.
How Do I Enable CORS on My Bucket?
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>http://www.example.com</AllowedOrigin>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
</CORSRule>
</CORSConfiguration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment