Skip to main content

What it flags

Cookie-based session or auth is paired with state-changing routes without CSRF protection or sameSite: "strict". A route that reads a cookie credential is a default-level finding when an app mounts its router after a cookie parser with no CSRF middleware in between. Project middleware mounted before the router, such as app.use(requireSameOrigin), may verify requests, so those routes stay contextual.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: