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

Post Reply
booth789
Jr. Bludit
Posts: 6
Joined: Mon Sep 17, 2018 2:30 pm

Wed Sep 19, 2018 12:03 pm

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
User avatar
Edi
Site Admin
Posts: 1261
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Wed Sep 19, 2018 12:10 pm

With Bludit v2.1.4? And which theme?
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
booth789
Jr. Bludit
Posts: 6
Joined: Mon Sep 17, 2018 2:30 pm

Wed Sep 19, 2018 12:20 pm

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
User avatar
diego
Site Admin
Posts: 635
Joined: Sat May 16, 2015 2:53 pm
Contact:

Thu Sep 20, 2018 12:16 am

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.
Post Reply