Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSRF Handling #15

Open
beberlei opened this issue Jul 23, 2012 · 2 comments
Open

CSRF Handling #15

beberlei opened this issue Jul 23, 2012 · 2 comments

Comments

@beberlei
Copy link
Collaborator

When CSRF protection is enabled funky form validation errors appear

@beberlei
Copy link
Collaborator Author

@bschussek any idea how i could solve this.

in $form = $this->createForm(new UserType(), $user, array()); i don't have the $request yet, so i don't know the request format. here and hence cannot set 'csrf_protection' => false. Is it possible to change this after form creation?

@webmozart
Copy link

Can't you defer the form creation until after that?

Forms are generally immutable after creation (configuration-wise), otherwise other funky stuff happens... :-\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants