- From: Ben Kelly <notifications@github.com>
- Date: Fri, 21 May 2021 14:09:25 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 21 May 2021 21:09:38 UTC
In chromium we have a [bug](https://bugs.chromium.org/p/chromium/issues/detail?id=1098389) about devtools triggering requests with `only-if-cached` which are then intercepted by service workers. In some site service worker scripts that do something like `new Request(evt.request)` this blows up because of step 21 here: https://fetch.spec.whatwg.org/#dom-request In this case mode is `navigate` instead of `same-origin`. Requests with mode `navigate`, however, must be same-origin to the current context. Could we relax this check to allow `only-if-cached` if the mode is `same-origin` or `navigate`? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/1237#issuecomment-846261008
Received on Friday, 21 May 2021 21:09:38 UTC