We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

Error during Web-socket handshake: Incorrect 'Sec-WebSocket-Accept' header value"RSS

2 replies

Last post Jun 20, 2021 08:52 AM by merijangpkad

‹ Previous Thread|Next Thread ›
  • Error during Web-socket handshake: Incorrect 'Sec-WebSocket-Accept' header value"

    Jan 30, 2021 12:52 PM|Santhosh_Periasamy|LINK

    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

  • Re: Error during Web-socket handshake: Incorrect 'Sec-WebSocket-Accept' header value"

    Feb 01, 2021 03:31 AM|Brucz|LINK

    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

    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
  • Re: Error during Web-socket handshake: Incorrect 'Sec-WebSocket-Accept' header value"

    Jun 20, 2021 08:52 AM|merijangpkad|LINK

    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.

‹ Previous Thread|Next Thread ›