shadowwalker / next-pwa

Zero config PWA plugin for Next.js, with workbox 🧰
MIT License
3.71k stars 312 forks source link

Refused to create worker #484

Open rahXephonz opened 12 months ago

rahXephonz commented 12 months ago

Summary

I got error when deploying my nextjs app into NGINX server the error is

Refused to create a worker from 'blob:https://harvez.fishlog-staging.net/28fe627c-31b3-4423-afd7-e6fb1744b772' because it violates the following Content Security Policy directive: "default-src * data: 'unsafe-eval' 'unsafe-inline'". Note that 'worker-src' was not explicitly set, so 'default-src' is used as a fallback. Note that '*' matches only URLs with network schemes ('http', 'https', 'ws', 'wss'), or URLs whose scheme matches `self`'s scheme. The scheme 'blob:' must be added explicitly.

Versions

next: 12.1.5 next-pwa: 5.5.4

Screenshots

image