Update common.ts

This commit is contained in:
Richard C Lim 2025-02-03 21:18:05 -05:00 committed by GitHub
parent 07b34eb44d
commit 247ef187f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@ const isAzure = req.nextUrl.pathname.includes("azure/deployments") || Boolean(se
?.trim()
.replaceAll("Bearer ", "")
.trim() ?? ""}`;
authHeaderName = "Authorization";
authHeaderName = "api-key";
} else {
authValue = req.headers.get("Authorization") ?? "";
authHeaderName = "Authorization";