Closed dandv closed 4 years ago
thanks for the issue report! cross-fetch
is just a proxy for whatwg-fetch in a browser and node-fetch in Node. So it will honor whatever those libs allow. If you've got the node-fetch/1.0
user agent, node-fetch
is being used, not whatwg-fetch
.
Right! Thanks for the clarification :)
There's a long discussion at https://github.com/whatwg/fetch/issues/37 about user-agent, which apparently is no longer forbidden.
Is that header still ignored by
cross-fetch
? The following sent a user agent ofnode-fetch/1.0 (+https://github.com/bitinn/node-fetch)
.