I'm using a service worker mainly for push notifications. When receiving a message event, is it possible to fetch a URL outside the service worker's domain (for storing subscription data, for instance)?
Asked
Active
Viewed 179 times
0
-
Possible duplicate of [Can a service worker fetch and cache cross-origin assets?](https://stackoverflow.com/questions/54619653/can-a-service-worker-fetch-and-cache-cross-origin-assets) – sideshowbarker Oct 08 '19 at 02:45
-
Yes. See the answers at https://stackoverflow.com/a/54659324/441757 and https://stackoverflow.com/a/44183524/441757 – sideshowbarker Oct 08 '19 at 02:50