Skip to content

Instantly share code, notes, and snippets.

@joelongstreet
Created March 6, 2013 21:21
Show Gist options
  • Save joelongstreet/5103191 to your computer and use it in GitHub Desktop.
Save joelongstreet/5103191 to your computer and use it in GitHub Desktop.
Sample AmazonS3 Cors configuration to allow cross domain requests and expose headers.
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>Authorization</AllowedHeader>
<ExposeHeader>x-amz-meta-author</ExposeHeader>
<ExposeHeader>x-amz-meta-caption</ExposeHeader>
<AllowedHeader>x-amz-*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment