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 Protection Disabled #2

Closed
jonmchan opened this issue Oct 26, 2019 · 0 comments
Closed

CSRF Protection Disabled #2

jonmchan opened this issue Oct 26, 2019 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@jonmchan
Copy link
Owner

Cannot get CSRF to work properly. Always get ActionController::InvalidAuthenticityToken when submitting the form from the authentication controller unlock action even though it shows a token is being passed:

Processing by PseudoKiosk::AuthenticationController#process_submit as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"FNNARKcugBTpMqy/7vgzq/Gh3kKv7FYx6FgueF11jBub4GBeXAnrwiUhJO6v/TBWWmtmlIQfDs1NIHPZQFcWWw==", "passcode"=>"sfdf"}
Can't verify CSRF token authenticity.
Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms)

Currently skipping verify_authenticity_token:

skip_before_action :verify_authenticity_token

@jonmchan jonmchan added the help wanted Extra attention is needed label Oct 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant