K1 · exposed-keys
Move an email-sending key out of your public JavaScript
- What it means
- A value shaped like an email service API key is written into a script every visitor downloads. Moving it to your server and issuing a new key keeps your email account in your hands.
- Evidence
/assets/app.js SG.••••••••••••.••••7Qx (shown shortened)- Fix
- Revoke the key in the provider's dashboard, issue a new one, and call the provider from your server so the key never reaches the browser.