Avatar of Colin Brazier
Colin Brazier
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

How can I fix my CORS errors?

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.


HTMLChromeWeb Browsers

Avatar of undefined
Last Comment
David Favor

8/22/2022 - Mon