insomnia
insomnia copied to clipboard
WebSocket requests not routed through the configured proxy
Expected Behavior
If I set an http network proxy on my Insomnia preferences I want all my requests to go through that proxy, including ws/wss connections.
Actual Behavior
Even though I have a proxy configured, WebSocket requests are not going though that proxy. All other normal http/https requests do go through the proxy.
Reproduction Steps
- Create a new WebSocket request
- Test it without any proxy settings, verify it works
- Configure a proxy under Insomnia preferences
- Try to make a connection with that same WebSocket request, observe that the request still works but it does not go through the proxy
Is there an existing issue for this?
- [X] I have searched the issue tracker for this problem.
Additional Information
The proxy in question is mitmproxy which I use regularly to capture and analyse traffic. I am able to observe all other http/https requests I make from Insomnia on the mitmproxy interface, but not the ws/wss connections. I do see ws/wss connections made by my application on the mitmproxy interface. If I turn the mitmproxy off but leave the proxy settings configured on Insomnia, the WebSocket request still works (meaning is not going through the proxy) but all other http/https requests wouldn't work, as expected.
Insomnia Version
2022.6.0
What operating system are you using?
macOS
Operating System Version
macOS Ventura 13.1
Installation method
Download from Insomnia website
Last Known Working Insomnia version
No response