You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm looking for a solution, how to pass CSRF protection in e2e tests. ATM, we have sign in form with method:
And I would like to remove the
isTest()
part:But the default CsrfProtection is hardcoded in Form -> https://github.com/nette/forms/blob/master/src/Forms/Form.php#L227.
It would be nice to specify custom CsrfProtection factory to add dummy token validation in tests etc. Is it something that could be implemented?
Best Regards
V.
Beta Was this translation helpful? Give feedback.
All reactions