We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Rails is a popular framework and supports an optional "data-method" parameter, like this:
<a rel="nofollow" data-method="delete" href="/en/logout">
It would be very bad to automatically follow such links if data-method exists and is not GET.
Solution: Simply don't preload a links that have a data-method and provide a value other than GET (any case).
See also: dieulot/instantclick#170
The text was updated successfully, but these errors were encountered:
I don’t want to add code specific to Rails.
Also, if the /en/logout endpoint works only on DELETE, preloading it on GET should have no adverse effect, right?
/en/logout
Sorry, something went wrong.
No branches or pull requests
Rails is a popular framework and supports an optional "data-method" parameter, like this:
It would be very bad to automatically follow such links if data-method exists and is not GET.
Solution: Simply don't preload a links that have a data-method and provide a value other than GET (any case).
See also: dieulot/instantclick#170
The text was updated successfully, but these errors were encountered: