Re: [fetch] `user-agent` header control (#37)

> GitHub itself recommends User-Agent set to your GH user name in API requests

https://developer.github.com/v3/#user-agent-required

This helps us contact application owners when there are problems, like a rogue script making lots of API calls. However, many API resources are only available to authenticated sessions, so the user account is already known. And when accessing the API through a browser, the CORS request includes the `Origin` header.

The `User-Agent` header guidance in the API is helpful, but it's not necessarily an example for or against this capability being added to `fetch`.




---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/37#issuecomment-89830609

Received on Sunday, 5 April 2015 18:38:43 UTC