Skip to content

Instantly share code, notes, and snippets.

@carlosonweb
Created August 5, 2017 06:59
Show Gist options
  • Select an option

  • Save carlosonweb/45b6dd0b5f758b5ca735b21ef53dfaf6 to your computer and use it in GitHub Desktop.

Select an option

Save carlosonweb/45b6dd0b5f758b5ca735b21ef53dfaf6 to your computer and use it in GitHub Desktop.
# Error Message:
#
# Access to Font at '...' from origin '...' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header
# is present on the requested resource. Origin '...' is therefore not allowed access.
#
# --------------------------------------
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
# --------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment