Open lupas opened 3 years ago
any update about this ?
I am getting this as well, has there been any progress by chance?
Waiting for resolving this problem!
Always any solution ? Because i have this problem with production server
UPDATE While investigating I realised that the service worker is only available with an https connection (https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#setting_up_to_play_with_service_workers) If you want to test with an HTTP connection, just do this procedure on your Chrome (https://stackoverflow.com/questions/40696280/unsafely-treat-insecure-origin-as-secure-flag-is-not-working-on-chrome/53388534#53388534)
We are running into an issue with nuxt-pwa (workbox) and the
nuxt --hostname
option on the nuxt command when the PWA/Workbox Module has itsdev
option set totrue
.Example Code
Very simple example repo can be found here (only this branch): https://github.com/lupas/lupas-temp/tree/nuxt-pwa-hostname-issue
Reproduce Issue
Create a nuxt app
Install the PWA module with
Add the PWA module to
nuxt.config.js
and setdev: true
Add
--hostname
option tonuxt
command in package.jsonStart app and see error in Chrome Dev Tools:
Further Notes
nuxt --hostname localhost
Thanks a lot for any hints if there is something we can do to make this work.