I'm running Nanohttpd inside my Android App. All works fine. The pages get served to my desktop browser.
But if I access the url using 127.0.0.1.. or 192.168.1.x.. from my chrome browser on the same android device, I get bad-gateway error. The issue is happening because of "Reduce Data Usage" option in Chrome's bandwidth management.
I used Chrome debugger and found the response - This page cannot be loaded via the Chrome Data Compression Proxy. Try reloading the page.
The problem is, this is a jQuery based request. Is there a workaround for this issue?