-
Notifications
You must be signed in to change notification settings - Fork 196
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
Reporting in Chrome broken when form-action CSP directive exists #2557
Comments
I also tried from https://webcompat.com/ and using "Report Anonymously", same problem. @miketaylr red alert? |
dang. ok, i'll revert and investigate. |
rather, deploy the last version. |
Why are we trying to submit to the http endpoint... |
Don't know if you already deployed, but I just tested on Firefox and the problem doesn't manifest there. So possibly this is also an interop issue :) |
Interesting, my 3 attempts actually did successfully file issues:
I'll close them. Good news is that the type-google label worked! |
cc @laghee (since this relates to the CSP stuff) |
Oh, I'll do that next time :) Which repo do the bugs end up in? |
That would make sense if we're trying to submit the form on HTTP and relying on nginx doing the 301 to HTTPS... but why would we be submitting to http? The |
We might consider removing the form-action directive from our CSP until we figure this out... otherwise it means Chrome users can't report bugs (which would be silly for a compat site :P). If I can't figure it out in a few hours, I'll back that out. |
Thanks @miketaylr, much appreciated! |
@miketaylr Any chance it's related to flask's |
That's a good guess... but right now the form action is hard-coded to the relative |
OK, I've deployed the temporary bandaid patch (which just removes form-action) and deployed that, but we should try to figure out what the real bug is here... I'm still not 100% sure this isn't some strange Chrome bug. Testing with Charles Proxy, I didn't see any traffic trying to hit the http endpoint, or a redirect of any kind. |
Maybe some contexts here.
302 and 307 seem to have different behaviors btw. |
Starting from https://webcompat.com/issues/new?label=type-google (HTTPS) and being logged in to the site using my GitHub account, I see a "Report as foolip" button alongside the "Report Anonymously" button. Using that button doesn't work, the whole form is fading in/out (intentional, I presume) but nothing happens. In the Chrome devtools console:
In other words, a problem of mixing http and https.
The text was updated successfully, but these errors were encountered: