-
Security
Lock down my session cookie flags
Sets HttpOnly, Secure, and SameSite on session cookies and fixes session tokens stored in localStorage.
Free Prompt
What This Does / How This Helps
Fixes the two session mistakes vibe-coded apps make constantly: cookies set without HttpOnly, Secure, and SameSite flags, and session tokens parked in localStorage where any injected script can read them. A token readable by JavaScript is a token one XSS bug away from being stolen, and a cookie without SameSite can be sent along with forged requests from other sites. These are the quiet misconfigurations that turn a small bug into full account takeover. You'll get each change shown before and after, plus dev-tools verification steps so you can confirm the flags are actually set in the browser.
Want to skip doing this by hand?
Fortivibe audits your app for all of the areas these prompts cover (and more).