soveran / cuba

Rum based microframework for web development.
http://cuba.is
MIT License
1.44k stars 249 forks source link

Possibility to disable csrf in test environment #64

Closed tomaadland closed 9 years ago

tomaadland commented 9 years ago

Problem running tests is that none of my queries are all of sudden not authorized b/c of missing csrf token in headers. Is there a way to simply disable it ? Or actually set a csrf token on the header for every request made in test mode ?

tomaadland commented 9 years ago

Actually just disabled it in the Cuba.define block on test environment seems to do the trick :)