mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 05:36:39 +08:00
Update common.ts
This commit is contained in:
parent
6b6fd6997d
commit
0703876b57
@ -21,7 +21,7 @@ const isAzure = req.nextUrl.pathname.includes("azure/deployments") || Boolean(se
|
||||
.replaceAll("Bearer ", "")
|
||||
.trim() ?? "";
|
||||
|
||||
authHeaderName = "api-key";
|
||||
authHeaderName = "Authorization";
|
||||
} else {
|
||||
authValue = req.headers.get("Authorization") ?? "";
|
||||
authHeaderName = "Authorization";
|
||||
|
Loading…
Reference in New Issue
Block a user