Skip to content

Instantly share code, notes, and snippets.

@ezy
Created June 15, 2020 06:14
Show Gist options
  • Save ezy/803666bc4bbb3d96ddfa461399ee9f47 to your computer and use it in GitHub Desktop.
Save ezy/803666bc4bbb3d96ddfa461399ee9f47 to your computer and use it in GitHub Desktop.
AWS CORS config for all http methods
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment