matthew-andrews / isomorphic-fetch

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

Make it *not* use window.fetch if it is available #131

Closed Noitidart closed 7 years ago

Noitidart commented 7 years ago

Is there a way to force isomorphic-fetch to force use polyfill? Even if window.fetch exists? Because in Microsoft Edge all fetch requests are failing - http://stackoverflow.com/a/43580982/1828637

paulmelnikow commented 7 years ago

If you don't find a way to do this with isomorphic-fetch, you can do it with fetch-ponyfill, which will always give you the whatwg implementation.

Noitidart commented 7 years ago

Very cool thank you @paulmelnikow !

matthew-andrews commented 7 years ago

I think @paulmelnikow suggestion is the best way to achieve what you're after. isomorphic-fetch simply passes all fetch logic to whatwg-fetch — so not really an easy way I can think of to force using the polyfill.