Created
June 13, 2015 17:45
-
-
Save hoanghiep90/3933506930551e02edbb to your computer and use it in GitHub Desktop.
Fix CORS issue with CloudFront
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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