Ocelot SignalR -> Cookies not sent to endpoint
{
"DownstreamPathTemplate": "/hubs/{everything}",
"UpstreamPathTemplate": "/CustomChat/hubs/{everything}",
"UpstreamHttpMethod": [ "Get", "Post", "Delete", "Put", "Patch" ],
"DownstreamScheme": "ws",
"RequestHeadersToForward": [
"Content-Type",
"Authorization",
"x-tenant-id",
"x-site-id",
"cache-control",
"content-disposition",
"Cookie"
],
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 5502
}
],
"SwaggerKey": "CustomService",
"EnableWebsockets": true,
"PreserveRequestCookies": true,
"AuthenticationOptions": {
"AuthenticationProviderKey": "Bearer",
"AllowedScopes": []
},
"UpstreamHeaderTransform": {
"Cookie": "{Request.Cookies}"
}
}
],
"SwaggerEndPoints": [
{
"ReRouteKey": "CoreService",
"Key": "CoreService",
"Config": [
{
"Name": "Core Service API",
"Version": "v1",
"Url": "http://localhost:5500/openapi/v1.json"
}
]
},
{
"DownstreamPathTemplate": "/hubs/{everything}",
"UpstreamPathTemplate": "/CustomChat/hubs/{everything}",
"UpstreamHttpMethod": [ "Get", "Post", "Delete", "Put", "Patch" ],
"DownstreamScheme": "ws",
"RequestHeadersToForward": [
"Content-Type",
"Authorization",
"x-tenant-id",
"x-site-id",
"cache-control",
"content-disposition",
"Cookie"
],
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 5502
}
],
"SwaggerKey": "CustomService",
"EnableWebsockets": true,
"PreserveRequestCookies": true,
"AuthenticationOptions": {
"AuthenticationProviderKey": "Bearer",
"AllowedScopes": []
},
"UpstreamHeaderTransform": {
"Cookie": "{Request.Cookies}"
}
}
],
"SwaggerEndPoints": [
{
"ReRouteKey": "CoreService",
"Key": "CoreService",
"Config": [
{
"Name": "Core Service API",
"Version": "v1",
"Url": "http://localhost:5500/openapi/v1.json"
}
]
},
1 Reply
Solved