I’d like to modify the about:config value of network.http.accept-encoding from gzip, deflate to identity using javascript before I make a web request.
I’d like to modify the about:config value of network.http.accept-encoding from gzip, deflate to identity
Share
You cannot change
Accept-Encoding. Firefox, at least, will block this header from being set through ajax.What you could do, however, is send your AJAX or web request through a servlet filter which changes the header of the request before continuing on.