P2 · MediumSecurity
Cookie missing SameSite
Cookie vulnerable to CSRF
Code: cookie_missing_samesite
Why it matters
Cookie vulnerable to CSRF. Browsers and users expect sites to be secure. Missing protections expose visitors to data theft, phishing, and loss of trust.
How to fix
Add SameSite attribute to cookies
httpSet-Cookie: session=value; Secure; HttpOnly; SameSite=Strict; Path=/
<!-- SameSite options: Strict (most secure), Lax (default in modern browsers), None (requires Secure) -->Related checks in Security
Run a free scan to check your site
Get a complete audit in under 2 minutes. No account required.
Start Free Scan