fix: #5429 Anthropic authentication_error CORS

This commit is contained in:
DDMeaqua 2024-09-14 16:06:18 +08:00
parent b32d82e6c1
commit 9a5a3d4ce4
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ async function request(req: NextRequest) {
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
"Cache-Control": "no-store", "Cache-Control": "no-store",
"anthropic-dangerous-direct-browser-access": true,
[authHeaderName]: authValue, [authHeaderName]: authValue,
"anthropic-version": "anthropic-version":
req.headers.get("anthropic-version") || req.headers.get("anthropic-version") ||