-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
PHP $_SERVER['REQUEST_METHOD'] blocked on POST? #3038
Comments
Hello and thanks for opening an issue!
|
|
OK thank you.
To clarify, disabling using the "Disable for this site" button in PB's popup, or disabling the entire extension on the manage extensions page? |
Could you identify what it is about the form that makes it not work? In other words, what is the minimal version of this form that will demonstrate the problem? |
"Disable for this site" fixes the issue
here's where it gets really weird.
it still throws the error, but only on this page. I've even renamed the page in case that was the issue. Switching from POST to GET works fine. so, if I change to
it does work, but
fails So, only this form needs an explicit action, and that action can't have querystring parameters, they all have to be on the POST. Glad to have worked that out, will go back through the project and fix that up everywhere I think it must be something happening on the host though, as I dropped the site onto a VPS with a different provider and the issue doesn't occur. Current host where we're building this proof of concept is very cost effective but offers no support (so not going to have much luck getting them to see what's happening) so might just switch this to a different host (don't want to ask people using this to disable PB) |
Closing for now. |
very strange behaviour - two pages on the same site, using the same template. One works fine, but the other on a submission the $_SERVER['REQUEST_METHOD'] variable isn't getting set unless Privacy Badger is disabled.
Submitting the form with a GET works (but is impractical)
As this is a server side thing, I have no idea how PB could be impacting this, and why it's only happening on one of the forms.
Weirdly the form that's got the issue has less personal info than the one that's working!
If there's something I need to be more aware of while developing this site to keep Privacy Badger happy, happy to put it into practice.
The text was updated successfully, but these errors were encountered: