fix: add anthropic-dangerous-direct-browser-access header for CORS

This commit is contained in:
Claude 2026-06-27 04:16:30 +00:00
parent 3e16c962c6
commit b7b832764d
No known key found for this signature in database

View file

@ -47,6 +47,7 @@ export async function fetchAnthropic({ system, userMessage, maxTokens = 1024 })
'Content-Type': 'application/json',
'x-api-key': apiKey,
'anthropic-version': '2023-06-01',
'anthropic-dangerous-direct-browser-access': 'true',
},
body: JSON.stringify(body),
});