dev-proxy
dev-proxy copied to clipboard
PowerShell does not pick up that proxy has been started or stopped
When using Dev Proxy with PowerShell the current session does not pick up that proxy has been started or stopped.
- Open PowerShell session (1) and issue a request to API, it will succeed
- Open a new PowerShell session (2) and start Dev Proxy, then send another request, Dev Proxy will intercept the request
- Stop Dev Proxy, switch to PowerShell session (1) and issue another request to API, it will fail although proxy is not running
- Close PowerShell session (1), and create a new PowerShell session, issue a request to API, it will succeed
To use Dev Proxy you must start a new PowerShell session after starting it and a new PowerShell session after it's been stopped.
To add to this, it occurs only in PowerShell on Windows. PowerShell on macOS handles changed proxy settings just fine.