Merge pull request #5435 from DDMeaqua/fix-AnthropicCros

fix: #5429 Anthropic authentication_error CORS
This commit is contained in:
Dogtiti 2024-09-15 10:07:24 +08:00 committed by GitHub
commit 313c942350
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

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