I am using Windows + Visual studio code to developer a Node JS API. I am using Axios to submit rest requests from NodeJs to third party API's.
I would like to inspect the packets sent from my Node server to the third party backend via Fiddler, however I have been having a hard time getting Axios to proxy through 127.0.0.1 port 8888.
Ideally it would be an easy global variable to set to turn on/off the proxy. the thing I have tried is:
axios.defaults.proxy = { host: "127.0.0.1", port:8888}
axios.defaults.proxy = { host: "127.0.0.1", port:8888, protocol: "http"}
axios.post(url: <api>, {post:data}, {proxy: {host: "127.0.0.1", "8888"} });
and a alot of different variations of the above. when the proxy is on, it won't complete the request.