shouldn’t the ‘cdn-cgi/rum’ executes only on the page that user access, not in ALL links?
We use iframes WP embedded blocks links and its causing errors with CDN-cgi/rum:
‘Access to XMLHttpRequest at ‘bvmi.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.’
How can I resolve this issue? Is there a configuration option to prevent it from happening?
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.
Try disallowing the /cdn-cgi/ path on your robots.txt, as suggested here. Make sure you purge the cache for your robots.txt and wait a couple of days until the ads crawlers pick up the new version.