• Hi,
    I installed SuperPWA, OneSignal, LiteSpeed cache, and Bunny CDN plugins. SuperPWA and Onesignal work without any errors when I do not use Bunny CDN. With Bunny CDN and LiteSpeed cache, I get 6 to 7 errors and the OneSignal popup and icon do not show up, and Add to Home Screen popup too are not showing up.

    I tried different ways to exclude SuperPWA .jason and .js files still no luck.

    [Service Worker Installation] Installing service worker failed SecurityError: Failed to register a ServiceWorker: The origin of the provided scriptURL ('https://xxx.b-cdn.net') does not match the current origin ('https://www.xxx.com').
    
    Access to fetch at 'https://xxx.b-cdn.net/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/OneSignalSDKWorker.js.php?appId=ec4be6d5-xxxx' from origin 'https://www.xxx.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
    
    ServiceWorkerManager.js:370 GET https://xxx.b-cdn.net/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/OneSignalSDKWorker.js.php?appId=ec4be6d5-xxxx net::ERR_FAILED

    Let me know.
    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author SuperPWA

    (@superpwa)

    Can you please share the URL of your website? So that we will check and let you know back.

Viewing 1 replies (of 1 total)
  • The topic ‘Getting errors with cache and cdn plugins’ is closed to new replies.