Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 30a7363

Browse files
committed
feat: add credentials include to HTTP requests (#1027)
1 parent 1a0c27c commit 30a7363

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/core/src/client/http-client-driver.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export function createHttpClientDriver(managerEndpoint: string): ClientDriver {
183183
? { [HEADER_CONN_PARAMS]: JSON.stringify(params) }
184184
: {}),
185185
},
186+
credentials: "include",
186187
});
187188
},
188189
});
@@ -211,6 +212,7 @@ export function createHttpClientDriver(managerEndpoint: string): ClientDriver {
211212
[HEADER_CONN_TOKEN]: connectionToken,
212213
},
213214
body: messageSerialized,
215+
credentials: "include",
214216
});
215217
return res;
216218
},

packages/core/src/client/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { httpUserAgent } from "@/utils";
55
import * as cbor from "cbor-x";
66
import { ActorError, HttpRequestError } from "./errors";
77
import { logger } from "./log";
8+
import { warn } from "node:console";
89

910
export type WebSocketMessage = string | Blob | ArrayBuffer | Uint8Array;
1011

@@ -76,6 +77,7 @@ export async function sendHttpRequest<
7677
"User-Agent": httpUserAgent(),
7778
},
7879
body: bodyData,
80+
credentials: "include",
7981
signal: opts.signal,
8082
}),
8183
);

0 commit comments

Comments
 (0)