3
votes

Using the latest versions of signalR and @aspnet/signalr I still get issues connecting. I'm fairly sure the versions are exactly the same.
I've been following the startup project here. But instead I'm using an Angular 5 application. I get issues with CORS headers and more specifically the OPTIONS request returns a 405 method not allowed.

Visual studio version here.

Typescript/javascript client version here

1
better type the code in the post instead of using a screenshotPatrick
Having the exact same issue, with the same versions.John Waters
@JohnWaters I created an issue on the github and I was told I misconfigured my CORS in my application. Please see this issue on how I solved it: github.com/aspnet/SignalR/issues/2054Bastien verschaete

1 Answers

1
votes

I faced same issue and it appeared that order matters. Make sure you've put it like this:

app.UseCors(...builder...)
app.UseSignalR(...routes...)
app.UseMvc(...routes...)