browser_not_allowed
403 · The API can’t be called from a web browser.
What it means
Section titled “What it means”The request came from a web page (it had an Origin header from another site, or was a CORS preflight). The API refuses these because a key in a web page can be read by anyone using the page.
How to put it right
Section titled “How to put it right”Call the API from a server instead: a script, a backend, or a small serverless function that holds the key and passes calls on. See Build with an AI assistant for a template.
What the response looks like
Section titled “What the response looks like”{ "type": "https://docs.farkitect.com/api/errors/browser-not-allowed", "title": "The API can't be called from a web browser", "status": 403, "detail": "A sentence about this request: what was wrong, and what would be accepted.", "code": "browser_not_allowed", "requestId": "req_46075e91719e4bd0a9a4"}Branch on code, not on title or detail, which may be reworded. See Errors for how every error is shaped.