fix(dev): bridge dev session cookie through legacy proxy
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@unidesk/provider-gateway",
|
||||
"version": "0.2.25",
|
||||
"version": "0.2.26",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
@@ -2017,6 +2017,11 @@ function headersFromMicroserviceRequest(requestHeaders: Record<string, JsonValue
|
||||
const value = requestHeaders[name];
|
||||
if (typeof value === "string" && value.length > 0) headers.set(name, value);
|
||||
}
|
||||
const cookie = requestHeaders.cookie;
|
||||
const xAuth = requestHeaders["x-auth"];
|
||||
if ((typeof cookie !== "string" || cookie.length === 0) && typeof xAuth === "string" && xAuth.length > 0) {
|
||||
headers.set("cookie", xAuth);
|
||||
}
|
||||
return headers;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user