isomorphic-fetch icon indicating copy to clipboard operation
isomorphic-fetch copied to clipboard

Document ability to change user-agent

Open FezVrasta opened this issue 7 years ago • 2 comments

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.

FezVrasta avatar Dec 12 '16 17:12 FezVrasta

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?

shenders13 avatar May 03 '17 08:05 shenders13

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

FezVrasta avatar May 03 '17 08:05 FezVrasta