When I use the WP embedded block in a news post on my site, the ‘cdn-cgi/rum’ tries to execute within them, generating errors in the console.
How can I resolve this issue? Is there a configuration option to prevent it from happening?
The error that occurs in all WP embedded blocks is:
‘Access to XMLHttpRequest at ‘mysite.com.br/cdn-cgi/rum?’ from origin ‘null’ has been blocked by the CORS policy: Response to preflight request doesn’t pass access control check: The ‘Access-Control-Allow-Origin’ header has a value ‘unknown://nil’ that is not equal to the supplied origin.’
I don’t believe CORS is the problem because it’s the same site URL, and the ‘cdn-cgi/rum’ should only execute on the page that I access, not on ALL iframes (WP embedded blocks) on the page.
These errors are affecting Google AdSense.