-
Notifications
You must be signed in to change notification settings - Fork 128
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
Getting 428 response and no digits in the captcha #177
Comments
Hello, The controller that generates the captcha is handling another requests, the field options are transported using the session, and retrieved in the generator controller. The 428 error indicates that the controller can't retrieve valid options for generation from the session and is done here: https://github.com/Gregwar/CaptchaBundle/blob/master/Controller/CaptchaController.php#L32 The session is filled by the Captcha Genrator when the form is issued. As a side effect, loading directly the URL of the captcha without running the form will result in 428 Maybe you can inspect the contents of the session and check what it contains at this time |
Hi, The session is not empty. print_r($options, true) gives:
|
Looking at the session data in Symfony Profiler, I do see captcha_whitelist_key:
The printout of |
The problem was with... framework->session->cookie_secure: true. Had to set it to false. |
Yes .. this has helped us too. Thanks.. |
I have the same problem. But I'm trying to change the same that you changed, but it doesn't solve my problem. |
Hi,
We have a Symfony 3 app that have a captcha on a page. It works on a developer's workstation, but not on mine. When the captcha should be generated, I get:
The captcha is built like this:
What is missing? I have the latest version of Captcha and CapthaBundle. PHP 7.1, with GD support. No error in the logs.
The text was updated successfully, but these errors were encountered: