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

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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

With Bludit v2.1.4? And which theme?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
booth789
Jr. Bludit
Posts: 6
Joined: Mon Sep 17, 2018 2:30 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: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

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