Skip to content

Token is stored in session cookie #7

@ivanol

Description

@ivanol

I just tried adding goji/csrf as middleware to an app and everything continued to work as normal even before adding csrf fields to the forms. It seems the token is stored in a session cookie automatically, and this is used for authentication. How does this prevent a csrf attack - won't any browser with an active session succeed with POST requests even if they are malicious?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions