CORS errors in my Wordpress site

37 views
Skip to first unread message

Vinoth S

unread,
Mar 7, 2024, 8:21:28 AM3/7/24
to OpenLiteSpeed Development
Hi,

I have a WordPress site installed in an open Lightspeed server. This is a multi-site with three domains. I get a couple of Cross-Origin Request Blocked errors in the primary domain. I tried all solutions configured in lightspeed vhost settings, but no success.

Help me resolve this issue. Here is the error I get in the browser console

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.cloudflareinsights.com/beacon.min.js/v84a3a4012de94ce1a686ba8c167c359c1696973893317. (Reason: CORS request did not succeed). Status code: (null).

None of the “sha512” hashes in the integrity attribute match the content of the subresource. The computed hash is “z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==”.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.cloudflareinsights.com/beacon.min.js/v84a3a4012de94ce1a686ba8c167c359c1696973893317. (Reason: CORS request did not succeed). Status code: (null).

None of the “sha512” hashes in the integrity attribute match the content of the subresource. The computed hash is “z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==”.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://stats.g.doubleclick.net/g/collect?t=dc&aip=1&_r=3&v=1&_v=j86&tid=G-M629W3JTZS&cid=e70d7e13-4aac-4a7e-ad29-a39d7154e50d&_u=KGDAAEADQAAAAC%7E&z=1588983599. (Reason: CORS request did not succeed). Status code: (null

My Header operation on context :

Strict-Transport-Security: max-age=31536000; includeSubDomains
    Content-Security-Policy "upgrade-insecure-requests;connect-src *"
    Referrer-Policy strict-origin-when-cross-origin
    X-Frame-Options: SAMEORIGIN
    X-Content-Type-Options: nosniff
    X-XSS-Protection 1;mode=block
    Permissions-Policy: geolocation=*

Thanks
Reply all
Reply to author
Forward
0 new messages