Re: [w3c/ServiceWorker] Service-Worker-Allowed can be cross-origin to the script URL. (#1307)

for me, I tested it within a subdomain, I had the same issue described above, and was able to solve it by changing the 

scope: '/',  --->        scope: '.',
    

app.js 
.... 
  const registration = await navigator.serviceWorker.register(
        'sw.js',
        {
          scope: '.',
        }
... 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1307#issuecomment-1376759072
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/issues/1307/1376759072@github.com>

Received on Tuesday, 10 January 2023 05:36:46 UTC