-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hi all,
I am trying to test a Sinatra app which has rack_csrf enabled for forms and most routes.
Some routes do not have csrf enabled, as they belong to the apps API.
Does it make any sense to test csrf protection (with minitest and rack-test) for all routes, to check that forms are correctly csrf-protected and API routes are not? What would be the best practice for this? Or would it be best to just ignore this and disable/skip rack_csrf completely in test mode?
Thanks and best regards
Christian
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels