-
Notifications
You must be signed in to change notification settings - Fork 20
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
Subscription blocked by Cloudflare - invalid method PUT #8
Comments
Hello, before you reported this issue the plugin was recently updated in the marketplace. Could you please use the latest version and check if the issue still persists? We changed how we pass the |
Ok, thank you! From your screenshot I can see you use nginx as your HTTP server. So, the traffic probably works like this: Apart from that, the official WordPress guides for REST API says regarding those verbs:
Please keep us posted! |
@kanaldro after considering reports from different repositories, it's clear that there's a gain on compatibility with apache mod_security, nginx default configuration and some WAFs in doing what you suggested. Further readings: We will come up with a solution that either consists in using Method overrides as fallback, adding a feature flag for compatibility or changing to POST/GET methods entirely. We will be updating this ticket, thank you for your contributions! |
Hello, thanks for the feedback. |
Thank you @kanaldro, we will basically opt for compatibility and will switch completely to POST/GET methods. We have seen lots of issues in our user base and we don't want to make it difficult for them to make it work in the first run. Thank you for reporting this! |
This has been solved and will be part of the next release |
This has been released, if you find any other issue please let us know. Thank you @kanaldro |
Hello, I just installed your WP plugin to test it out and looks like there's an issue with Cloudflare, the world's most used CDN.
The PUT http method is blocked so the subscription never gets to the server, the call to the endpoint returns a 405. error.
These are de response headers for the request:
and this is the response got in browser from the API endpoint:
Do you think you could change the way the subscription is passed from browser to server, from PUT to POST?
Thanks!
Edit: found a better explanation here: https://gridpane.com/kb/making-nginx-accept-put-delete-and-patch-verbs/
Cloudflare uses NGINX server.
The text was updated successfully, but these errors were encountered: