Cdn-cgi/rum ERROR in embedded links

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:
2023-07-05 123204
‘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?

1 Like

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.

Hi,

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.

1 Like

Hi, thanks for te response!

we disallowed the /cdn-cgi/ path 8 days ago, but the error is still occurring.

You can reproduce the same error at this link

What can we do now?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.