locked
Error during Web-socket handshake: Incorrect 'Sec-WebSocket-Accept' header value" RRS feed

  • Question

  • User1164836108 posted

    I am using Windows server 2019 with reverse proxy configured with ARR 3 and hosted my project with node.js and socket.io, I am redirecting the website www.mywebsite.com/project to internal address http://192.168.0.190:800.

    When I try to access the website http://192.168.0.190:800 inside the server socket.io is working but when i try to access the website outside the network using external address i am getting the error "Error during Web-socket handshake: Incorrect 'Sec-WebSocket-Accept' header value"

    My reverse proxy configuration

    <rule name="vrp" stopProcessing="true">
     <match url="^/project/(.*)" />
     <action type="Rewrite" url="http://192.168.0.190:800/{R:1}" />
     </rule>

    Help me to solve the issue.

    Thanks,

    Santhosh

    Saturday, January 30, 2021 12:52 PM

All replies

  • User1771714573 posted

    Hi Santhosh_Periasamy,

    This is not a problem of rewriting rules in a reverse proxy, but proxy server.

    The task of the header Sec-WebSocket-Accept is to prevent giving the connection as opened when the response is a cached one from a proxy.

    You can try to switch to HTTPS and WSS, or directly disable the caching function on ARR, the proxy cannot cache secure connections, the problem may disappear.

    Best regards,

    Brucz

    Monday, February 1, 2021 3:31 AM
  • User-1163985518 posted

    Hey Bro have you solved your issue if yes then please let me know what How can You do? If No! then Can I Ask the same question on the newly Microsft forum Maybe a better reply will come.

    Sunday, June 20, 2021 8:52 AM