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

Silently fail when CSRF meta tags do not exist #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sikachu
Copy link

@sikachu sikachu commented Nov 7, 2023

This PR updates post function to continues to work when Rails' CSRF <meta> tags are missing.

I noticed in the feature spec in the test environment that any interactions that calls post() function would fail with an error message because Rails disables CSRF protection by default in the test environment.

This update will allow us to be able to run feature test on the pages that uses post() function to updates the backend.

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

Successfully merging this pull request may close these issues.

1 participant