Access Control Allow Origin Header - where & how?

After a lot of hard work, I have my site running pretty well. However an error keeps showing up in the console of my developer tools.

[color=#FF0000]XMLHttpRequest cannot load http://… No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘’ is therefore not allowed access. [/color]

The address that cannot access it always css from Google PageSpeed.(I removed it above because its long and jumbled) PageSpeed seems to be working fine but I keep having this show up and want to find out how to fix it.

The research I did lead me to these sites:

CORS - Access Control

but I’m not sure where and how to add the code. :huh: What I have tried resulted in 500 errors and the white screen of death. :exclamation: So I’m looking for some insight. Anyone who could help, I’d appreciate it.


Is it on a specific page (somewhere I can reproduce it)? There is some javascript somewhere on the page making a fetch for the Google PageSpeed URL and it isn’t allowed because it’s on a different domain.

I’d recommend sending a note to the PageSpeed team with the details because it sounds like a bug in a rewriter somewhere (or an unexpected interaction).