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

Enforcing won't preserve HTTP methods #65

Closed
hammady opened this issue Nov 25, 2013 · 1 comment
Closed

Enforcing won't preserve HTTP methods #65

hammady opened this issue Nov 25, 2013 · 1 comment

Comments

@hammady
Copy link

hammady commented Nov 25, 2013

I have a sign_out link that has a DELETE HTTP method (browser posted it as POST with _method=delete in the query string). Because its url matches the SslEnforcer, so its protocol gets modified to https. However, the browser displays 404 and my server logs say:
ActionController::RoutingError (No route matches [GET] "/users/sign_out")
It means that it is rerouted but the method was changed to GET instead of POST, and rails didn't find this route.

@hammady
Copy link
Author

hammady commented Nov 25, 2013

I can see it normal as the browser follows the redirect using GET. May be I have to directly send sign out requests using https.

@hammady hammady closed this as completed Nov 25, 2013
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

1 participant