Skip to content

Instantly share code, notes, and snippets.

@hoanghiep90
Created June 13, 2015 17:45
Show Gist options
  • Save hoanghiep90/3933506930551e02edbb to your computer and use it in GitHub Desktop.
Save hoanghiep90/3933506930551e02edbb to your computer and use it in GitHub Desktop.
Fix CORS issue with CloudFront
For nginx:
location ~* \.(ttf|ttc|otf|eot|woff|svg|font.css)$ {
add_header Access-Control-Allow-Origin *;
expires 1M;
access_log off;
add_header Cache-Control "public";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment