From b7b832764dbc14ed540de4c9d8ae0ff1219963cb Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 27 Jun 2026 04:16:30 +0000 Subject: [PATCH] fix: add anthropic-dangerous-direct-browser-access header for CORS --- agrifine-extension/src/utils/api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/agrifine-extension/src/utils/api.js b/agrifine-extension/src/utils/api.js index dc09b16..639abdd 100644 --- a/agrifine-extension/src/utils/api.js +++ b/agrifine-extension/src/utils/api.js @@ -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), });