© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
13 replies
Hulkstance

❔ Trying to use Azure SignalR Service as Backplane and for client affinity (Sticky sessions)

Pretty self explanatory title. However, I'm getting CORS issue as you can see in the image.

services.AddSignalR().AddAzureSignalR("Endpoint=https://xxx.signalr.net;AccessKey=xxx;Version=1.0;");

...

app.MapHub<NotificationHub>("/notification");
services.AddSignalR().AddAzureSignalR("Endpoint=https://xxx.signalr.net;AccessKey=xxx;Version=1.0;");

...

app.MapHub<NotificationHub>("/notification");

const connection = new HubConnectionBuilder()
    .withUrl(`${apiRoutes.root}/${HUB_NAME}`, {
        accessTokenFactory: () => authUser.accessToken || ''
    })
    .configureLogging(LogLevel.Information)
    .withAutomaticReconnect()
    .build();
const connection = new HubConnectionBuilder()
    .withUrl(`${apiRoutes.root}/${HUB_NAME}`, {
        accessTokenFactory: () => authUser.accessToken || ''
    })
    .configureLogging(LogLevel.Information)
    .withAutomaticReconnect()
    .build();

services.AddCors(o => o.AddPolicy("AllowAll", builder =>
    {
        builder.AllowAnyOrigin()
            .AllowAnyMethod()
            .AllowAnyHeader();
    }));
services.AddCors(o => o.AddPolicy("AllowAll", builder =>
    {
        builder.AllowAnyOrigin()
            .AllowAnyMethod()
            .AllowAnyHeader();
    }));
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Multi-Instance Application with SignalR and Redis as backplane
C#CC# / help
2y ago
SignalR Backplane with ElastiCache Serverless
C#CC# / help
2y ago
Unable to connect to SignalR (Not Azure SignalR) after deployment to Azure App Service
C#CC# / help
2y ago