OpenAI or Anthropic API key exposed in the browser
This story is from 2026-11-05. It is preserved in the archive; the latest stories are on the live feed.
An AI client created with dangerouslyAllowBrowser, or a key behind a VITE_ or NEXT_PUBLIC_ prefix, puts your API key in the page, where anyone can copy it and spend on your account. What you see The OpenAI or Anthropic client is created in a component, with dangerouslyAllowBrowser: true , or the ke…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-05 09:40 · DEV Community — AI
OpenAI or Anthropic API key exposed in the browser