WebPagetest Forums
Cors Problem - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: Cors Problem (/showthread.php?tid=16188)



Cors Problem - Cymru - 09-11-2020 10:49 PM

Hi all,

I just updated my Wordpress install from 5.1 to 5.5.1. I didn't have this problem before the update but now I have a browser error related to CORS and my woff2 fonts. I get the following error;

Access to font at 'https://cdn.pressertech.com/wp-content/themes/Divi/core/admin/fonts/modules.woff2' from origin 'https://www.pressertech.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

And I thought that this would be covered under the policy in my htaccess;

<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js|gif|png|jpe?g|svg|svgz|ico|webp)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>

Anyone have any pointers for me? It would be much appreciated. Thanks.