Angular/SignalR Error: Failed to complete negotiation with the server

前端 未结 6 1725
别那么骄傲
别那么骄傲 2020-12-06 10:25

Using SignalR for my server and Angular for my client... When I run my client I receive these errors:

zone.js:2969 OPTIONS https://localhost:27967/chat/negot         


        
6条回答
  •  误落风尘
    2020-12-06 10:49

    I faced the slimier issue and I fixed it by adding

    skipNegotiation: true,
    transport: signalR.HttpTransportType.WebSockets
    

    in client-side as @Caims mentioned. But I don't think this is the correct solution and feel more like a hack

提交回复
热议问题