conditional proxy switcher supporting WebSockets
yarn start
port
(default: 5050) - the port the proxy is runninglogging
(default: false) - enable logging of requestsprimary
- options of the primary target proxy https://github.com/http-party/node-http-proxy#optionssecondary
- options of the secondary target proxy https://github.com/http-party/node-http-proxy#optionsswitcher
- conditional check which target to use (primary/secondary)onRequest
- modifying primary request, helpful to modify headers to avoid CORS