troubleshooting Question

How can I fix my CORS errors?

Avatar of Colin Brazier
Colin BrazierFlag for United Kingdom of Great Britain and Northern Ireland asked on
HTMLWeb BrowsersChrome
6 Comments1 Solution10 ViewsLast Modified:
Hi all,

I am getting errors in the console similar to the below at https://www.fobgfc.org/ 

Access to XMLHttpRequest at 'https://kit.fontawesome.com/6b3cd631e3.js' from origin 'https://www.fobgfc.org' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

content_script.js:207 GET https://kit.fontawesome.com/6b3cd631e3.js net::ERR_FAILED

I am using Chrome.  

In addition to font-awesome, the same errors are appearing with google analytics etc, but I have selected the font-awesome one for this question because it is the simplest to debug for me.

As far as I can work out, the font-awesome fonts are appearing as they should when they are required, so is this just a warning?

I have searched EE and found other CORS-related questions and answers but cannot apply them to my instance.  

Any help much appreciated.

Colin

 
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros