ソースを参照

Merge pull request #5435 from DDMeaqua/fix-AnthropicCros

fix: #5429 Anthropic authentication_error CORS
Dogtiti 1 年間 前
コミット
313c942350
1 ファイル変更1 行追加0 行削除
  1. 1 0
      app/api/anthropic.ts

+ 1 - 0
app/api/anthropic.ts

@@ -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") ||