- From: aleemb <notifications@github.com>
- Date: Thu, 21 Feb 2019 01:41:58 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 21 February 2019 09:42:20 UTC
@mattto We tripped into a similar issue, however, in our case everything was on the same origin. When doing, navigator.serviceWorker.register("/js/sw.js", { scope: "/" }) This failed with the error `Failed to register a ServiceWorker: The path of the provided scope...` The fix is to add the `Service-Worker-Allowed` header seems to trip up quite a few people. Is there any reason to add this header if the request is **not** cross-origin? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1307#issuecomment-465930996
Received on Thursday, 21 February 2019 09:42:20 UTC