axios-https-proxy
HTTPS proxy support interceptor of axios.
Install
$ npm install --save axios-https-proxy
Usage
const axios = require('axios')const axiosHttpsProxy = require('axios-https-proxy')axios.interceptors.request.use(axiosHttpsProxy)
Caveats
- Isomorphic use is supported since
browser
field is set inpackage.json
. - Only HTTPS request through HTTP proxy (by CONNECT) is supported. HTTPS proxy
is still not, because HTTP request cannot use
follow-redirect#https
withmaxRedirect
option in axios http adapter :(
License
MIT