Closed undergroundwires closed 1 year ago
@undergroundwires thanks for opening this issue. As you mentioned, the purpose of cross-fetch is to serve as a proxy for different environment implementations of the Fetch API standard. There's no plan to add any kind of feature on this lib.
That being said, some possible alternatives would be:
cross-fetch
.cross-fetch
with that feature (and potentially others).Thanks again for taking the time to report this issue!
I use node.js successfully on client side, but on same project I'd also love to use cross-fetch using node-fetch options.
I would love to follow redirects, and it's not possible using WHATWG Fetch API but it's possible with
node-fetch
andfollow
option.Reproduce in node:
import fetch from 'cross-fetch';
fetch
withinit
argument that containsfollow: 200
(node-fetch specific option)follow: 200
optionI'm not sure if it's a bug report or feature request, but is there I way I can use it with options from node-fetch? I understand that the goal is to support WHATWG Fetch API, but should we strip down functionality that's already there? Or would you suggest any other solution for following redirects?
Thank you for maintaining this clean and magical library, I've seen using it successfully in privacy.sexy successfully and would love to continue doing it