- From: Anne van Kesteren <notifications@github.com>
- Date: Tue, 27 Sep 2016 02:50:54 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Tuesday, 27 September 2016 09:51:27 UTC
There's a number of things that would be nice to mutate in a request as it passes through a service worker, but a particular one that comes up often and might be the easiest is adding a header. Adding headers seems fine when request mode is "same-origin" or "cors", but harder when it is "navigate" or "no-cors" (see also #380). For "navigate" and "no-cors" we could maybe tag an additional flag to the added headers (making the map a little more complicated, which I guess we could do after we fix some other issues with headers) and drop the added headers upon encountering a (cross-origin?) redirect. -- 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/391
Received on Tuesday, 27 September 2016 09:51:27 UTC