An axios interceptor that enables HTTPS requests through an HTTP proxy using the CONNECT method. Current stable version is 0.1.1, with no recent updates (last release appears to be around 2018). It works by adding a request interceptor to axios instances. Differentiators: lightweight, simple API, supports isomorphic use via browser field in package.json. However, it only supports HTTPS over HTTP proxy, not HTTPS proxy itself. It requires axios ^0.18.0 as a peer dependency, which is a very old version.
npm install axios-https-proxyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to require and use the axios-https-proxy interceptor with axios to enable HTTPS requests through an HTTP proxy.
Use a more modern proxy solution like 'https-proxy-agent' or 'tunnel' with axios, or upgrade to axios 1.x and use built-in proxy support.
For HTTP targets, use axios's built-in proxy configuration or another library.
Set environment variables or manually configure axios.defaults.proxy before using the interceptor.
Ensure that the order of interceptors is correct. This interceptor should be added first.
Use a library that doesn't rely on follow-redirects, e.g., 'https-proxy-agent'.
Check proxy URL and port, ensure proxy is running and accessible from your network.
Use require('axios-https-proxy') in Node.js, or if using ES modules, use createRequire or dynamic import.Set process.env.HTTP_PROXY or axios.defaults.proxy to an HTTP proxy address.