Parcourir la source

fix: #5429 Anthropic authentication_error CORS

DDMeaqua il y a 1 an
Parent
commit
9a5a3d4ce4
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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") ||