Issue with CORS policy
-
Hi,
My website is facing issue loading some webfonts like Font Awesome, Roboto etc. In the console it showing thatAccess to font at 'Access to font at 'https://cdn-ajoap.nitrocdn.com/oIXaGTuaajpAplxpKGzUpqGxIMAlBRMt/assets/static/optimized/fonts/roboto-v20-latin-500.woff2' from origin 'https://www.bathroomking.com.au' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I added below code to .htaccess, but still facing same issue.
AddType application/vnd.ms-fontobject .eot AddType application/x-font-ttf .ttf AddType application/x-font-opentype .otf AddType application/font-woff .woff <FilesMatch ".(eot|ttf|otf|woff)"> Header set Access-Control-Allow-Origin "*" </FilesMatch>
Due to this my website is not rendering properly. Please take a look & let me know how can I solve this issue.
The page I need help with: [log in to see the link]
- The topic ‘Issue with CORS policy’ is closed to new replies.