Psifi-Solutions / csrf-csrf

A utility package to help implement stateless CSRF protection using the Double Submit Cookie Pattern in express.
Other
120 stars 18 forks source link

Enforce http only option #23

Closed psibean closed 1 year ago

psibean commented 1 year ago

When using the double submit cookie pattern, http only should always be true for the cookie. Disabling this is not a good idea. It could be argued that if you're vulnerable to XSS, then CSRF doesn't matter, but there is no justification for negligence.