jquery - Refused to set unsafe header "Connection" -


i working on cross platform application targets android , ios platforms. using jquery 1.9.1, jquery mobile 1.3.1 , phonegap 2.8.0.

i want send ajax request , set request headers "connection" , "keep-alive". on android phones os greater 4.1 (whose default browser chrome) error says "refused set unsafe header "connection"".

i able send such requests on lower end devices , on iphones.

can please me out.

i have set these 2 headers in request.

thanks in advance.

section 4.6.2 of w3c xmlhttprequest level 1 spec lists headers "are controlled user agent" , not allowed set setrequestheader() method. both connection , keep-alive in list.

accept-charset accept-encoding access-control-request-headers access-control-request-method connection content-length cookie cookie2 date dnt expect host keep-alive origin referer te trailer transfer-encoding upgrade user-agent via 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -