Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#5435 from DDMeaqua/fix-AnthropicCros
Browse files Browse the repository at this point in the history
fix: ChatGPTNextWeb#5429 Anthropic authentication_error CORS
  • Loading branch information
Dogtiti authored Sep 15, 2024
2 parents 26c3edd + 9a5a3d4 commit 313c942
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/api/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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") ||
Expand Down

0 comments on commit 313c942

Please sign in to comment.