No 'Access-Control-Allow-Origin' header is present on the requested resource.
Hello.
My website's blog has difficulty displaying the awesome fonts ONLY when the website has a www in front of the address. Otherwise, mysite.com/blog works perfectly.
I get the following error:
Access to Font at 'http://mysite.com/news/bl-kernel/css/fo ... f2?v=4.7.0' from origin 'http://www.mysite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.mysite.com' is therefore not allowed access.
How do I fix this? Thanks
My website's blog has difficulty displaying the awesome fonts ONLY when the website has a www in front of the address. Otherwise, mysite.com/blog works perfectly.
I get the following error:
Access to Font at 'http://mysite.com/news/bl-kernel/css/fo ... f2?v=4.7.0' from origin 'http://www.mysite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.mysite.com' is therefore not allowed access.
How do I fix this? Thanks
The best practices for your site is redirecting your visits from non-www to www or www to non-www. Because at the end are different domains / subdomains and you are sharing the same content in different domains.
Anyway, if you want to solve your problem you need to modified this font-awesome to relative path, without the domain.
Anyway, if you want to solve your problem you need to modified this font-awesome to relative path, without the domain.