purescript-contrib / purescript-affjax

An asynchronous AJAX library built using Aff.
Apache License 2.0
122 stars 78 forks source link

Affjax + HttpProxy Configuration #131

Open btrepp opened 5 years ago

btrepp commented 5 years ago

When running under node, I don't think affjax+xhr2 is using a http proxy.

Looking at xhr2, they seem to have added some support, but I don't 100% understand how that coffeescript reads. This is outside of the realm of affjax I think, especially if it's possible to set it up via a 'global' IO action on the xhr2 object.

I've opened this issue mainly for documentation, and for any poor souls who are trying to use this combination behind a http proxy.

alaendle commented 2 years ago

Has anyone found a suitable workaround? How to use affjax under node if a proxy is required to connect to the internet? Thanks in advance!

alaendle commented 3 months ago

spago is now also effected by this: https://github.com/purescript/spago/blob/f0f79015f419aa015bfb4433968a5cbab9308e94/src/Spago/Command/Fetch.purs#L228