xhr get request headers

 

 

 

 

To make a get request with XMLHttpRequest, we need to write the code like below.xhr.send(null) The above code will not works in IE 6 or 7. People are afraid of using the above codes.In this configuration object, we can specify different option like HTTP Method Type, Headers of the Request var xhr createCORSRequest(GET, url) if (!xhr) throw new Error(CORS not supported) Event handlers.The browser adds some additional headers, and sometimes makes additional requests, during a CORS request on behalf of the client. To make a get request with XMLHttpRequest, we need to write the code like.xhr.send(null) The above code will not work in IE 6 or 7. People are afraid of using the above code.In this configuration object, we can specify different options like HTTP Method Type, Headers of the Request, body of the JSONP works by issuing a GET request using a