When sent through the message header, the header is not visible when it arrives at the SignalR server.
public override async Task OnConnectedAsync()
{
var context = Context.GetHttpContext();
if (context != null && context.Request.Headers.TryGetValue("HEADER_MOCK_1", out StringValues value))
{
// **value** is not found.
}
await base.OnConnectedAsync();
}
When sent through the message header, the header is not visible when it arrives at the SignalR server.
Is there a way to solve it?