Skip to content

Instantly share code, notes, and snippets.

@kylefox
Last active December 11, 2015 09:58
Show Gist options
  • Save kylefox/4582967 to your computer and use it in GitHub Desktop.
Save kylefox/4582967 to your computer and use it in GitHub Desktop.
Example CORS configuration for allowing direct uploads to Amazon S3.
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
<MaxAgeSeconds>3000</MaxAgeSeconds>
</CORSRule>
@kylefox
Copy link
Author

kylefox commented Jan 21, 2013

Read more in the AWS Documentation: Enabling Cross-Origin Resource Sharing

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