SignalR Core 2.2 CORS AllowAnyOrigin() breaking change
There is a workaround, change AllowAnyOrigin
to SetIsOriginAllowed
:
app.UseCors(builder => builder
.AllowAnyHeader()
.AllowAnyMethod()
.SetIsOriginAllowed(_ => true)
.AllowCredentials()
);
I have found a solution. You can try the following code part:
.SetIsOriginAllowed (_ => true)
This worked for me.