question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

donetcore 2.2 broke signalr

See original GitHub issue

I have the latest aspnetcore 2.2.0 locally, and no longer get OnConnected events in SignalR (authenticated hub). Still using SignalR 1.0.4 on server, client is angular, and doesn’t work with either 1.0.4 or 1.1.0. Same client works with the previous aspnetcore version (2.1.6) with SignalR 1.0.3 and 1.0.4. I get the same problem with both regular SignalR and Azure SignalR.

Client side

"@aspnet/signalr": "^1.1.0",

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:29 (7 by maintainers)

github_iconTop GitHub Comments

22reactions
dylanvdmerwecommented, Jan 6, 2019

This seems to be a workaround for now.

          services.AddCors(options =>
            {
                options.AddPolicy(
                    "AllowAny",
                    x =>
                    {
                        x.AllowAnyHeader()
                        .AllowAnyMethod()
                        .SetIsOriginAllowed(isOriginAllowed: _ => true)
                        .AllowCredentials();
                    });
            });
6reactions
dylanvdmerwecommented, Jun 18, 2019

This issue really shouldn’t be closed, it causes a huge amount of chaos and needs to be looked at.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Breaking change in AspNetCore 2.2 for SignalR and CORS
This warning actually breaks SignalR – the preflight OPTIONS request fails, and POST /<hubname>/negotiate never happens. Your clients no longer connect to your ......
Read more >
Cannot find `SignalR` in `Microsoft.AspNetCore.App` in . ...
All and Microsoft.AspNetCore.App referenced after creating a new ASP.NET Core project (version 2.2). I've even tried Googling and found this ...
Read more >
ASP.NET Core 2.2 - SignalR Breaking changes
Problem is that this warning breaks the preflight OPTIONS check of SignalR and the client can no longer connect to the hubs. To...
Read more >
SignalR Troubleshooting
Take a look at ASP.NET Core SignalR. This document describes common troubleshooting issues with SignalR. Software versions used in this topic.
Read more >
ASP.NET Core 2.2 SignalR Server
SignalR is a technology that allows you to write bi-directional communication between a server and a client. This can lead to some pretty ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found