We have a NextJS website built for our clients, that requires you to be authenticated to access any page (this was accomplished using NextJS’s middleware). Now, we are running into a problem where we want to make our web app into a PWA using a service worker, but when the service worker goes to fetch the manifest.json on the server it is forced to try and authenticate which fails. The best solution would be to be able to share cookies with the service worker, but is there a workaround for this other than to disable authentication for that one specific file?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Offline Auth0 usage with service-workers | 0 | 3729 | September 25, 2019 | |
Offline with auth0 problem sw.js | 5 | 4098 | January 3, 2020 | |
Auth0 third party cookie and CORS | 2 | 5525 | March 2, 2018 | |
Silent authentication alternative ( Safari , cross-origin tracking ) | 3 | 5642 | February 18, 2019 | |
CORS error when authenticating a webtask | 3 | 4783 | December 17, 2018 |