Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created November 11, 2020 19:33
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 lukecav/c45c7ee8ef96d036737a3d1e7b2e8c0d to your computer and use it in GitHub Desktop.
Save lukecav/c45c7ee8ef96d036737a3d1e7b2e8c0d to your computer and use it in GitHub Desktop.
Fix CORS issues on the Nexcess CDN
##
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js|html|json|gif)">
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With"
Header set Access-Control-Allow-Methods "POST, GET, OPTIONS"
</FilesMatch>
##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment