Fable.SignalR icon indicating copy to clipboard operation
Fable.SignalR copied to clipboard

405 error with fable client

Open EHotwagner opened this issue 3 years ago • 0 comments

When following the counter example outlined in the documentation everything works fine with the dotnet client but the fable client throws a 405 error when negotiating the connection. This is because it sends an options request and not a get request. I got it working by disabling the negotiation phase.

This is somewhat unfortunate since the microsoft documentation tells you that you get this error because you dont have cors enabled and sends you down a different rabbit hole: https://docs.microsoft.com/en-us/aspnet/core/signalr/troubleshoot?view=aspnetcore-6.0

Response code 405

Http status code 405 - Method Not Allowed

The app doesn't have CORS enabled

EHotwagner avatar Jan 24 '22 17:01 EHotwagner