Font blocked – CORS policy error message
-
Hi,
I get the following error message when inspecting the website:
Access to Font at 'https://www.company.se/wp-content/themes/Divi-child/fonts/Plantagenet-Cherokee.ttf' from origin 'https://company.se' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://company.se' is therefore not allowed access. The response had HTTP status code 401.
I have tried the following without any success:
1. Installed the WP-CORS plugin and entered (where company represents the company’s name):
https://www.company.se, www.company.se, https://www.company.se/wp-content/themes/Divi-child/fonts/Plantagenet-Cherokee.ttf, www.company.se/wp-content/themes/Divi-child/fonts/Plantagenet-Cherokee.ttf
2. Added this code at the very end of the .htaccess file:
<IfModule mod_headers.c>
<FilesMatch “\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>
</IfModule>So I am at a loss right now.
Would very much appreciate your help in trying to get this resolved.
Best regards,
Cecilia
- The topic ‘Font blocked – CORS policy error message’ is closed to new replies.