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 | 3728 | September 25, 2019 | |
How does the auth0-nextjs withMiddlewareAuthRequired function work? | 2 | 2360 | February 28, 2024 | |
Offline with auth0 problem sw.js | 5 | 4092 | January 3, 2020 | |
CORS manifest access error when logging in/visiting site | 0 | 800 | September 20, 2023 | |
Next.js Auth0 | External API service (without /api directory) | 5 | 2604 | March 12, 2025 |