79352035

Date: 2025-01-13 11:33:49
Score: 0.5
Natty:
Report link

In my case the problem was the same name of the default webpack websocket and the mask in the proxy (/ws). Adding a new segment to the mask helped and instead of “/ws/**” I got “ws/api/**”.

{
    context: [
        "/ws/api/**",
        "/stream/ws/**"
    ],
    target: "wss://my-instance.com",
    ws: true,
    secure: false,
    changeOrigin: true,
},
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: feelingreat