- From: ironfroggy <notifications@github.com>
- Date: Mon, 04 Apr 2016 11:45:14 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Monday, 4 April 2016 18:46:31 UTC
For many systems *all* requests require certain headers, either for authorization, load balancer selection in testing scenarios, or CSRF protection schemes. Having to pass headers explicitly with every individual call to `fetch()` makes this difficult, especially compared to the ability to inject them into every call of `$.ajax()` that a lot of projects may be moving to `fetch()` from. I'd like to suggest configuring some API to configure default headers that would be used for all future `fetch()` calls in the session. Maybe an object at `fetch.headers` which could be used as a default set of headers to extend by the `headers` parameter to each `fetch()` call? --- 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/271
Received on Monday, 4 April 2016 18:46:31 UTC