Open Sceat opened 6 months ago
Using this vercel config (basically enabling the headers to access SharedArrayBuffers), makes it impossible to use the service worker somehow.
"headers": [ { "source": "/(.*)", "headers": [ { "key": "Cross-Origin-Embedder-Policy", "value": "require-corp" }, { "key": "Cross-Origin-Opener-Policy", "value": "same-origin" } ] } ],
It registers but then throws:
uncaught (in promise) TypeError: Type error sw.js:1
@Sceat provide minimal reproduction (and context 🙏 )
Using this vercel config (basically enabling the headers to access SharedArrayBuffers), makes it impossible to use the service worker somehow.
It registers but then throws: