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 Not being disabled even when told to #5755

Open
MUSTDOS opened this issue Jan 8, 2025 · 1 comment
Open

CSRF Not being disabled even when told to #5755

MUSTDOS opened this issue Jan 8, 2025 · 1 comment

Comments

@MUSTDOS
Copy link

MUSTDOS commented Jan 8, 2025

I tried to stop CSRF for API in application_controller.rb with skip_before_action :verify_authenticity_token

It worked well until I generated devise views for custom logging.

Now, CSRF keeps working even if I tried to add skip_before_action :verify_authenticity_token to the registrations_controller.rb

I'm not sure if this is a bug or misuse

@MUSTDOS
Copy link
Author

MUSTDOS commented Jan 9, 2025

NVM, it's devise custo, views that changed the needed JSON

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

No branches or pull requests

1 participant