Link to home
Start Free TrialLog in
Avatar of Andrew Spackman
Andrew SpackmanFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Cross domain request in Javescript

Hi,

I have built a site and put it live the other day, but I have noticed its running extremely slow, then when I look in the console it seems to be throwing a error regarding the following:

Access to Font at 'http://www.elec247.com/wp-content/themes/technico/fonts/fontawesome-webfont.woff2?v=4.6.3' from origin 'http://www.elec247.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

/#?secret=wOAtAvF6mK:1 Access to Font at 'http://www.elec247.com/wp-content/themes/technico/fonts/fontawesome-webfont.woff?v=4.6.3' from origin 'http://www.elec247.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

Any ideas why this has started to appear and how to fix it? It was fine when I first put it live?

www.elec247.com

Many Thanks,

Andrew
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

I am not seeing the errors.

Do you still have the problem?
Avatar of Andrew Spackman

ASKER

Hi,
I had deactivated some plugins and reactivated, for some reason all my visual editor widgets disappeared but the error went, I am now having to put everything back. Have no idea where this issue came from? any ideas?

Thanks,
Andrew
Doesn't make sense as the domain and protocol reported in the message are the same. Font files are subject to CORS checks so it is a legitimate message - just does not make sense in the context of the paths given.

Would need to see it in action to be able to diagnose further.
Well thanks for your reply but it appears to have gone now, but very odd!
... tis not for us to reason why ...

Although it is disconcerting when a problem goes away by itself - it just means it could come back.

If it does post back and we can take a look.
SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have the same problem on another site and it appears to be something to do with the fetch tweets plugin. Do you know where I need to put this code?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you, worked a treat :)