Skip to content

Instantly share code, notes, and snippets.

@vparihar01
Created January 8, 2016 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vparihar01/f1efec240c0299867304 to your computer and use it in GitHub Desktop.
Save vparihar01/f1efec240c0299867304 to your computer and use it in GitHub Desktop.
Access-Control-Allow-Headers
Access-Control-Allow-Methods
Access-Control-Allow-Origin
Access-Control-Max-Age
location ~* \.(eot|ttf|woff|woff2)$ {
add_header Access-Control-Allow-Origin *;
}
location ~* \.woff2$ {
add_header "Access-Control-Allow-Origin" "*";
add_header "Content-Type" "font/woff2";
try_files $uri @upstream;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment