CORS policy: No ‘Access-Control-Allow-Origin’

February 21, 2019 by admin

CORS policy No ‘Access-Control-Allow-Origin’ error

Font from origin domain.dev has been blocked… (CORS and browsersync)

If you are getting issue fonts are blocked in web client CORS then below code will help you. Use the code in .htaccess file and problem will be resolved 🙂
# Allow access from all domains for webfonts.
<IfModule mod_headers.c>
<FilesMatch “\.(ttf|ttc|otf|eot|woff|woff2|font.css|css)$”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>
</IfModule>

Leave a Reply

Your email address will not be published. Required fields are marked *

Get in touch today and see how we can help your business start to grow.

Contact us