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.

Socket.io access-control-allow=origin error from remote site

I am trying to access a socket.io server from another site. It worked for a few weeks but now …

node.js xmlhttprequest remote-access socket.io access-control
always_populate_raw_post_data - Trouble accessing request payload from Backbone create

I am trying to save a collection to my database RESTfully using Backbone.js with the SLIM php framework running …

php backbone.js xmlhttprequest slim postdata
How can I modify the XMLHttpRequest responsetext received by another function?

I am trying to modify the responseText received by a function that I cannot modify. This function creates a XMLHttpRequest …

javascript ajax xmlhttprequest monkeypatching
How can I use deflated/gzipped content with an XHR onProgress function?

I've seen a bunch of similar questions to this get asked before, but I haven't found one that describes my …

javascript jquery xmlhttprequest compression
xmlHttpRequest.onerror handler use case

What sort of situations could cause this handler to be called? I'm not finding any instance where this method throws …

javascript ajax xmlhttprequest onerror
Sending XMLHttpRequest with FormData

I am trying to make an XHR with JavaScript, but I can't get it to work correctly. When I see …

javascript ajax xmlhttprequest form-data
set withCredentials to the new ES6 built-in HTTP request API : Fetch

How to set withCredentials=true to fetch which return promise. Is the following correct : fetch(url,{ method:'post', headers, withCredentials: …

javascript ecmascript-6 xmlhttprequest fetch-api
Why XmlHttpRequest readyState = 2 on 200 HTTP response code

So I'm using plain javascript (no jquery), to send a file to the server. Server script PHP returns status code 200 …

javascript php ajax xmlhttprequest http-status-code-200
Angular 6: HttpErrorResponse SyntaxError: Unexpected token s in JSON

I am posting a request and I am suppose to receive a 'success' string back as response. I am getting …

angular rest typescript xmlhttprequest httpresponse
.NET CORE 3 Upgrade CORS and Json(cycle) XMLHttpRequest Error

I had my working project written in asp.net core 2.1 for a long time, but yesterday, I was forced to …

json asp.net-core cors xmlhttprequest asp.net-core-3.0