I am working on a cross platform application that targets Android and iOS platforms. I am using jQuery 1.9.1, Jquery Mobile 1.3.1 and Phonegap 2.8.0.
I want to send an ajax request and set the request headers "Connection" and "Keep-Alive". On Android Phones with OS greater than 4.1 (Whose default browser is Chrome) I get an error which says "Refused to set unsafe header "Connection"".
I am able to send such requests on lower end devices and even on iPhones.
Can Anyone Please help me out.
I have to set these 2 headers in the request.
Thanks in advance.