Top "Xmlhttprequest" questions

XMLHttpRequest (XHR) is a JavaScript object that exposes an API for making asynchronous HTTP requests from frontend code running a Web browser — that is, for enabling the programming technique known as AJAX.

Why am I getting an OPTIONS request instead of a GET request?

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script> <…

jquery xmlhttprequest http-get http-options-method
Deadly CORS when http://localhost is the origin

I am stuck with this CORS problem, even though I set the server (nginx/node.js) with the appropriate headers. …

javascript html cors xmlhttprequest xmlhttprequest-level2
Pure JavaScript Send POST Data Without a Form

Is there a way to send data using the POST method without a form and without refreshing the page using …

javascript post httpwebrequest xmlhttprequest http-post
AngularJS: No "Access-Control-Allow-Origin" header is present on the requested resource

I'm writting my webApp and I'm using AngularJS. In this app I have created a file called script.js and …

javascript html angularjs xmlhttprequest cors
Cross-Origin Request Headers(CORS) with PHP headers

I have a simple PHP script that I am attempting a cross-domain CORS request: <?php header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Headers: *"); ... …

php javascript xmlhttprequest cors
jQuery has deprecated synchronous XMLHTTPRequest

Like many others, my website is using jQuery. When I open the developer tools, I see a warning that says …

javascript jquery ajax xmlhttprequest
POST data in JSON format

I have some data that I need to convert to JSON format and then POST it with a JavaScript function. &…

javascript json post xmlhttprequest
Origin null is not allowed by Access-Control-Allow-Origin

I have made a small xslt file to create an html output called weather.xsl with code as follows: <!…

javascript null xmlhttprequest cors localhost
What does it mean when an HTTP request returns status code 0?

What does it mean when JavaScript network calls such as fetch or XMLHttpRequest, or any other type of HTTP network …

ajax http xmlhttprequest httpresponse fetch-api
XMLHttpRequest Origin null is not allowed Access-Control-Allow-Origin for file:/// to file:/// (Serverless)

I'm trying to create a website that can be downloaded and run locally by launching its index file. All the …

jquery xml xslt cors xmlhttprequest