.NET Core 3.1, SignalR “Server returned handshake error: Handshake was canceled.” RRS feed

  • Question

  • User-1461101679 posted

    I've built a .NET Core 3.1 web app with SignalR.

    Dev version on localhost is working fine

    Azure version on mywebsite.azurewebsite.net is working fine

    But my custom mydomain.com handled by Cloudflare is not working and returning "Server returned handshake error: Handshake was canceled." when attempting to connect to WS.

    I assume there is a problem with Azure possibly blocking attempts from Cloudflare and not connecting. Any ideas on how to fix that? I'm not using Azure SinglaR service because I don't need to scale yet.

    Thursday, June 4, 2020 9:17 PM


  • User-1461101679 posted

    Solved - needed to turn on Web Sockets in Azure Portal

    AppServices - Configuration - General Settings -> Web sockets - switch ON

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 4, 2020 9:52 PM