plone / plone4.csrffixes

Backport the auto CSRF implementation from Plone 5 to Plone 4
https://pypi.python.org/pypi/plone4.csrffixes
0 stars 4 forks source link

functional tests are failing #8

Closed krissik closed 9 years ago

krissik commented 9 years ago

I have just installed Plone Hotfix 20151006. But now my functional tests using a testbrowser fail. The site says

Careful, it's possible someone is executing an exploit against you. Verify you just performed an action on this site and that you were not referred here by a different website or email.

This is logical. Is there a possibility to disable csrf-protection during tests?

vangheem commented 9 years ago

Hi @KrissiK

https://pypi.python.org/pypi/plone.protect

If you set the environment variable PLONE_CSRF_DISABLED to true, it should disable csrf protection with your tests.