Why Cursor Ships Your OpenAI Key to Every Visitor (CWE-522)
This story is from 2026-10-13. It is preserved in the archive; the latest stories are on the live feed.
TL;DR When the OpenAI SDK throws "It looks like you're running in a browser-like environment", AI editors usually fix it by adding dangerouslyAllowBrowser: true and moving the key into a VITE_ or NEXT_PUBLIC_ variable. That ships your secret API key to every visitor. It sits in the JavaScript bundl…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-13 17:31 · DEV Community — AI
Why Cursor Ships Your OpenAI Key to Every Visitor (CWE-522)