fix: preserve dev frontend auth cookies

This commit is contained in:
Codex
2026-05-18 13:00:55 +00:00
parent 82f51f8601
commit c09beb0d54
3 changed files with 74 additions and 1 deletions
@@ -22,6 +22,7 @@ const PROVIDER_HTTP_TUNNEL_MAX_ATTEMPTS: i32 = 3;
const FORWARD_REQUEST_HEADERS: &[&str] = &[
"accept",
"content-type",
"cookie",
"range",
"x-auth",
"x-requested-with",
@@ -1229,7 +1229,7 @@ async function serviceDiagnostics(service: ManagedService): Promise<JsonRecord>
function forwardHeaders(request: Request): Headers {
const headers = new Headers();
for (const name of ["accept", "content-type", "x-requested-with"]) {
for (const name of ["accept", "content-type", "cookie", "x-requested-with"]) {
const value = request.headers.get(name);
if (value !== null) headers.set(name, value);
}