Skip to content

Instantly share code, notes, and snippets.

@alicial
Created October 11, 2013 20:31
Show Gist options
  • Save alicial/6941533 to your computer and use it in GitHub Desktop.
Save alicial/6941533 to your computer and use it in GitHub Desktop.
Needed to add this CORS configuration to AWS S3 bucket in order to get font files working in Firefox. Open AWS Management Console, go to your bucket, click on Properties > Permissions > Edit CORS Configuration
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>{{YOUR SITE HERE, e.g. https://example.com}}</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedHeader>Content-*</AllowedHeader>
<AllowedHeader>Host</AllowedHeader>
<AllowedHeader>x-amz-*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment