matthew-andrews / isomorphic-fetch

Isomorphic WHATWG Fetch API, for Node & Browserify
MIT License
6.95k stars 289 forks source link

Document ability to change user-agent #116

Open FezVrasta opened 7 years ago

FezVrasta commented 7 years ago

When you run isomorphic-fetch from node, you can define a custom User-Agent string. When you run it from a browser, you are not allowed to define a custom one.

I think this should be documented somewhere because it can lead to confusion.

shenders13 commented 7 years ago

I find it hard to believe that set a User-Agent header from the Browser using fetch. Is that really the case? Does AJAX (or another library) allow you to set the User-Agent header from the browser?

FezVrasta commented 7 years ago

Nope, but since on node it works, it would be nice to document this difference between the two environments