Page 1 of 1

No 'Access-Control-Allow-Origin' header is present on the requested resource.

Posted: Wed Sep 19, 2018 12:03 pm
by booth789
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 :D

Re: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Posted: Wed Sep 19, 2018 12:10 pm
by Edi
With Bludit v2.1.4? And which theme?

Re: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Posted: Wed Sep 19, 2018 12:20 pm
by booth789
Edi wrote: Wed Sep 19, 2018 12:10 pm With Bludit v2.1.4? And which theme?
I'm using bludit 2.3.4 and the editorial v1.0

Re: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Posted: Thu Sep 20, 2018 12:16 am
by diego
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.