I am trying to implement Push Notifications for Google Chrome. I want to register service worker from a different domain.
Example: Service Worker Code is located at: https://example.com/
I want to register the service worker (which is located at above domain) from a different domain: https://example2.com/
Is there any way to achieve the same. Because when I try to include the service worker page (example) as an iFrame, the service worker throws an error while registering
"Uncaught (in promise) DOMException: Registration failed - permission denied"
https://example.comin a new popup window withwindow.open. not a perfect solution but better than nothing