OpenAI API key exposed in your public JavaScript
Anyone who visits your app can read your OpenAI key in the JavaScript their browser downloads. Whoever copies it can use it on your bill.
- key
- sk-proj-Ab…9xQ
- found in
- /assets/index-4f2a9c1b.js
- used by
- new OpenAI({ dangerouslyAllowBrowser: true })
Step one is yours: revoke the key in your OpenAI dashboard and make a new one. Deleting it from the code does not un-leak it.