Open kartikarora opened 1 year ago
I can confirm that a similar setup on Charles Proxy just works.
Thanks. I'm investigating your issue and send you a Beta build to test it out 👍
@kartikarora can you share with me the website that uses WSS that I can test 🤔
Note that I have to add the WSS domain (demo.piesocket.com) into the network_security_config.xml
file.
<network-security-config>
<domain-config>
<!-- Make sure your URL Server here -->
<domain includeSubdomains="true">www.piesocket.com</domain>
<domain includeSubdomains="true">demo.piesocket.com</domain>
<trust-anchors>
<certificates src="user"/>
<certificates src="system"/>
</trust-anchors>
</domain-config>
<debug-overrides>
<trust-anchors>
<certificates src="user" />
<certificates src="system" />
</trust-anchors>
</debug-overrides>
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
</trust-anchors>
</base-config>
</network-security-config>
Hey @NghiaTranUIT
Thanks for the quick response. Unfortunately, the domains are not internet-facing and won't work until you are physically here in the office in Sydney :/
I can however confirm that I have set up my network_security_config in a similar manner and I am able to proxy the other end points over https easily.
I'll try overriding the webview url with piesocket's demo url and see if that works.
Interesting to find that https://www.piesocket.com/websocket-tester in the webview works and I am able to see the messages in Proxyman
Maybe the bug is from WSS with STOMP protocol. I'm trying to find any STOMP WS online, so I can test it 👍
@NghiaTranUIT The same server is interceptible on Charles though. I'd rather use Proxyman, to be honest. I can't find any stomp servers online, I'll try and make one over the weekend.
Description
I am debugging an Android app which opens a webview, and the webview initiates a websocket connection. I have no control over the webview or the websocket connection code.
The webview is able to send parsed messages from websocket to native android code. I'd like to be able to modify this response using map remote to a locally hosted websocket server.
When I open the webview in chrome's inspector, the following happens
Error during WebSocket handshake: 'Sec-WebSocket-Protocol' header must not appear more than once in a response
but the headers in Proxyman seem to be fine.Environment