Tampermonkey / tampermonkey

Tampermonkey is the most popular userscript manager, with over 10 million users. It's available for Chrome, Microsoft Edge, Safari, Opera Next, and Firefox.
GNU General Public License v3.0
4.3k stars 424 forks source link

TM breaks AJAX requests on Chrome that use gzip Accept-Encoding #324

Closed ganon0 closed 8 years ago

ganon0 commented 8 years ago

Hello,

Our company has an internal website we use for viewing code. In April of this year, we received many reports around TamperMonkey causing this website to start breaking on AJAX requests in Chrome. At the time, users were told to either disable the plugin on chrome://settings (which works), or use a different browser.

This issue has resurfaced and I'm looking for a solution that allows users to keep TamperMonkey turned on. I unfortunately have no repro case I can provide; our website is not accessible outside of our network. However, I can give this information:

Our website is a Django app running on Apache.

Any help or advice you can provide would be greatly appreciated.

tophf commented 8 years ago

Debug those requests by inspecting the headers and request/response contents:

derjanb commented 8 years ago

@ganon0 Sorry for the delay. I've checked the source and I'm not sure what exactly could cause your issues. Can you please send a screenshot (Ctrl+Shift+J -> Network tab) of such an AJAX request? You can blur all sensitive information if you want. The screenshot should look like this and show the request headers. Thanks. Jan

image

derjanb commented 8 years ago

@ganon0 I've changed a minor webRequest related issue at the latest beta version. I don't think that it could cause your issue, but please re-test this with version 4.2.5330. Thanks.

ganon0 commented 8 years ago

Thank you so much for your response, and sorry it's taken so long to get back to you; we've been very busy on other things.. After some internal research, we've found a workaround that solves the problem for our users. We disabled our server's gzipping of response content for AJAX requests, and now our users are able to use TM with our internal website again.

Thanks,

ganon0