martenframework / marten

The pragmatic web framework.
https://martenframework.com
MIT License
424 stars 24 forks source link

Add support for session-based CSRF tokens #66

Closed ellmetha closed 9 months ago

ellmetha commented 1 year ago

Description

Presently, CSRF tokens are stored in the browser cookies. This is standard practice, but storing such tokens in session can sometimes be a security requirement. As such, we should find a way to make it possible via a dedicated setting.

Implementation