Platform

Security fixes

Keys that must never ship in the browser, and how to rotate them.

14 fixes: 6 in full, then 8 more by title.

Top Security fixes

  1. OpenAI API key (sk-) is in the front-end code

    An OpenAI sk- key is in the browser bundle? OpenAI says never deploy a key in a browser. Revoke it and call the API from your server.

  2. Missing security headers: check HSTS, CSP, X-Frame-Options and nosniff

    A scanner says a security header is not set? Check all four at once: HSTS, Content-Security-Policy, X-Frame-Options and X-Content-Type-Options, then fix each one on your host.

  3. Netlify secret scanning failed the build

    Netlify stopped the deploy because secret scanning found a key in the repo or the build output? Remove that value, then deploy again.

  4. Anthropic API key (sk-ant-) is in the front-end code

    An Anthropic sk-ant- key shipped in the browser? The Claude docs tell you to keep the key in an environment variable and to proxy browser calls through your server.

  5. Gemini API: API key not valid (API_KEY_INVALID)

    Gemini returns 400 API key not valid with reason API_KEY_INVALID? The key is missing, unrestricted, or sitting in the browser. Call Gemini from the server.

  6. Supabase service_role or secret key exposed in front-end code

    Is your Supabase service_role or sb_secret key in your browser code? Anyone can read it and bypass all security. How to rotate and fix it.

More Security fixes

Older or narrower fixes for Security. Titles only.

All platforms

Keep going on your own.

The guides stay free. A deep leak report is $15. Fix packs are $24, or $49 for all three. There is no done-for-you repair.

See products