Skip to content

Instantly share code, notes, and snippets.

@cryptixcoder
Created April 22, 2015 20:01
Show Gist options
  • Save cryptixcoder/966c87fa13cd9e40a23b to your computer and use it in GitHub Desktop.
Save cryptixcoder/966c87fa13cd9e40a23b to your computer and use it in GitHub Desktop.
AWS S3 CORS
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>LOCALHOST</AllowedOrigin>
<AllowedOrigin>LIVEADDRESS</AllowedOrigin>
<AllowedMethod>PUT</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<ExposeHeader>x-amz-server-side-encryption</ExposeHeader>
<ExposeHeader>x-amz-request-id</ExposeHeader>
<ExposeHeader>x-amz-id-2</ExposeHeader>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment