fix: preserve dev frontend auth cookies
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user