Cookies missing Secure, HttpOnly or SameSite
Your session or authentication cookie should normally be Secure, HttpOnly and have a deliberate SameSite value. Other cookies, such as a theme preference that your frontend reads, may legitimately lack HttpOnly, so judge each cookie by what it protects.
Check your app free, first fix freeSecure keeps a cookie off plain HTTP, HttpOnly stops page scripts from reading it, and SameSite limits cross-site sending. The session cookie is what matters most. Check the Set-Cookie response headers on your live app, fix them where the cookie is created, and avoid blanket rules that break legitimate cookies. ProofForge does not run a dedicated check for this.
What each flag does
- Secure: the browser only sends the cookie over HTTPS. Any cookie on an HTTPS site should normally have it.
- HttpOnly: page JavaScript cannot read the cookie. This limits what an injected script can steal. It does not stop that script from making requests as the user.
- SameSite: Lax or Strict reduce the cookie being sent on cross-site requests, which helps against cross-site request forgery. None is needed for some embedded or cross-site flows and requires Secure.
Not every cookie needs all three. A cookie your frontend must read, such as a UI preference or a CSRF token designed for double-submit, cannot be HttpOnly. The important one is whichever cookie proves who the user is.
Check your own app
Sign in, then inspect the response that sets the session cookie, or use your browser's developer tools under Application, Cookies. From a terminal:
curl -sI https://your-app.example/api/auth/session | grep -i "^set-cookie"Many auth libraries set the session cookie on the sign-in response rather than every page, so a page with no Set-Cookie header is not evidence of a problem.
Fix it where the cookie is created
// Example for a server route that issues your own session cookie
return new Response(null, {
status: 204,
headers: {
"Set-Cookie": [
"session=" + token,
"Path=/",
"HttpOnly",
"Secure",
"SameSite=Lax",
"Max-Age=604800",
].join("; "),
},
});If a hosted auth provider issues the cookie, use its documented options instead of rewriting headers in a proxy. Third-party cookies, such as analytics, are controlled by that vendor.
Verify
Sign in again on the live domain and confirm the flags in developer tools. Then make sure sign-in, sign-out and any embedded checkout still work; switching SameSite can break cross-site flows that genuinely need None.
What ProofForge does and does not check here
ProofForge does not currently perform a dedicated cookie-flag check. This is a manual guide, not a claim of detection: a clean ProofForge report says nothing either way about this issue. The public scan covers the areas listed on the methodology page, such as exposed files, bundle secrets, security headers, CORS and selected database access. Use the steps above on an app you own or have permission to test, and keep your own notes as evidence.
Turn the check into a release decision
Keep a small record of the production URL, the time you checked it, the exact finding and the action you took. A local preview and a deployed application can have different environment variables, response headers and database projects. After a repair, deploy the intended version and check the public address again. Do not assume that changing a repository file changed the live system.
Read coverage as carefully as the score. A timed-out asset, an ambiguous backend configuration or a request that could not safely establish access should remain unknown. It should not disappear from your release notes merely because there is no red finding. If a check was not completed, decide who will review it and what additional evidence is needed.
ProofForge's free report includes the first fix. The $9 Fix Report unlocks all findings' available repair guidance and builder prompts, with a PDF and private report link. Fix + Guard costs $29 once and adds builder rules, on-demand deploy-hook scans for 30 days and four weekly rechecks you start yourself. These are different deliverables, not different promises that an application is completely secure.
Keep private report URLs out of public issues and commits. If you need shareable evidence, use the owner-verification and publication flow for an eligible receipt. A signature protects the recorded assessment against undetected changes; it does not make the assessment exhaustive, prove a business outcome, or show that a later deployment still matches an earlier result.
Questions builders ask
Should every cookie be HttpOnly?
Is SameSite=None always insecure?
Does ProofForge check cookie flags?
Related checks and fixes
Continue with a related guide
Sources
Scan your app free
See what your live app ships to every visitor, with the first fix free. A clean scan is not a full audit. Run it only on an app you own or have permission to test.
Scan your app free