Hope this is the right place/project, otherwise my apologies.
When debugging nodejs using attach, vscode connects to the nodejs debugger using the address specified in launch.json
However, it seems to always use "localhost" in the host header for the requests it make.
This prevents me from routing the traffic through a proxy which needs host names in order to route properly
Is there anyway to control the host header in vscode's requests to the nodejs debugger?
Thanks
A sniffed snippet example from request vscode => nodejs debugger:
GET /json/version HTTP/1.1
user-agent: got (https://github.com/sindresorhus/got)
accept: application/json
host: localhost
accept-encoding: gzip, deflate, br
Connection: close
Another snippet from the ws upgrade request:
GET /6cabf470-7eb5-4202-b11f-4355c178c8a3 HTTP/1.1
Sec-WebSocket-Version: 13
Sec-WebSocket-Key: qDfnpxTOzSjxQfbiJcsTWQ==
Connection: Upgrade
Upgrade: websocket
host: localhost
Hope this is the right place/project, otherwise my apologies.
When debugging nodejs using attach, vscode connects to the nodejs debugger using the address specified in launch.json
However, it seems to always use "localhost" in the host header for the requests it make.
This prevents me from routing the traffic through a proxy which needs host names in order to route properly
Is there anyway to control the host header in vscode's requests to the nodejs debugger?
Thanks
A sniffed snippet example from request vscode => nodejs debugger:
Another snippet from the ws upgrade request: