SignalR not working with Windows-integrated authentication

后端 未结 2 1381
悲&欢浪女
悲&欢浪女 2021-01-12 03:06

I have an ASP.NET MVC 4 app (.NET 4.5) and SIgnalR works fine with forms-based authentication (hosted via IIS/IIS Express)

As soon as I change the app to windows-int

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-12 03:50

    I too was experiencing this error, but only when developing locally using http; I think Chrome doesn't like unsecured ws:// connections. Once I deployed to server with secure https connection, the WebSocket connection was upgraded to wss://, and Chrome stopped complaining, worked fine with WebSockets--didn't have to fall back to other transport.

    tl:dr; Make sure to use https for your site.

提交回复
热议问题