Error Failed to register a ServiceWorker
-
Hi,
I have set up a Web Push Platforms application with WordPress in my OneSignal account, but I have a problem when displaying notifications.
When I access my page I get the message to give permission to receive notifications, but when I accept and give permission I get the following errors.
The path of the provided scope ('/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/push/onesignal/') is not under the max scope allowed ('/fenie.es/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/'). Adjust the scope, move the Service Worker script, or use the Service-Worker-Allowed HTTP header to allow the scope. ServiceWorkerManager.js:363 [Service Worker Installation] Installing service worker failed SecurityError: Failed to register a ServiceWorker for scope ('https://feniees-cp524.wordpresstemporal.com/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/push/onesignal/') with script ('https://feniees-cp524.wordpresstemporal.com/fenie.es/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/OneSignalSDKWorker.js?appId=dca97b1e-4333-4c79-a3ad-8fe8eeb49d8f'): The path of the provided scope ('/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/push/onesignal/') is not under the max scope allowed ('/fenie.es/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/'). Adjust the scope, move the Service Worker script, or use the Service-Worker-Allowed HTTP header to allow the scope.
When I go to my OneSignal profile to see the users who have given permission to receive notifications I see that there are none so I cannot send notifications.
In the configuration of the platform in the SITE URL parameter does not allow me to put the URL where I have installed the WordPress because I can not put the directory of the installation. It only allows me to enter https://feniees-cp524.wordpresstemporal.com and there is nothing in that URL.
Is this the problem with users not registering with OneSignal to receive notifications?
How can I indicate the correct URL of the WordPress installation?Best regards
The page I need help with: [log in to see the link]
- The topic ‘Error Failed to register a ServiceWorker’ is closed to new replies.