xmlhttprequest Questions
4
I have been unable to deduce why Chrome(97.x.x.x) is unable to load the response for a successful POST XHR. It displays the following message in the response section:
Failed to load response data: ...
Impeditive asked 31/1, 2022 at 11:24
6
Solved
I'm getting started with the Web Audio API and just wondering if it's possible to use jQuery's $.ajax or $.load functions to make the XMLHttpRequest that receives the audio data. Do $.ajax or $.loa...
Auberge asked 12/9, 2012 at 19:1
3
Solved
Suppose I have an app at www.example.com (a)
If my resource is at www.someotherdomain.com (b) and I make an AJAX call from
(a) to (b) then CORS rules would apply.
However if my resource is locat...
Weld asked 21/11, 2017 at 4:47
4
I want to add custom headers (Bearer token) to each http call in a ASP.Net Web Form application.
Using the recommendations in the following links, I added the code to send added headers to the ser...
Rutilant asked 7/5, 2019 at 20:22
4
Solved
I wonder if there are many servers that are supporting CORS?
Era asked 10/2, 2011 at 2:39
4
I have working with Flutter DIO Library.
Its working fine on my Android App but giving error on Web.
Error: DioError [DioErrorType.response]: XMLHttpRequest error.
If I tried same url with http its...
Bemock asked 2/10, 2021 at 9:8
5
Solved
Is there a way to check if a request is AJAX in Python?
The equivalent of PHP's $_SERVER['HTTP_X_REQUESTED_WITH'] == 'xmlhttprequest'?
Semicircle asked 14/12, 2011 at 17:5
5
Solved
I'm trying to build a script that will act as a proxy/wrapper for the native XMLHttpRequest object enabling me to intercept it, modify the responseText and return back to the original onreadystatec...
Dextrose asked 6/6, 2013 at 10:10
2
Solved
I have an AJAX request that sends out some data. The data respects the multipart/form-data specification.
The problem I'm facing is that the browser sets the Content-Type header to text/plain and ...
Oily asked 23/1, 2011 at 12:10
6
Solved
I'm working on a project that has the frontend built in react and backend in spring and I can't seem to connect the two of them by using axios.
Keep in mind that the backend is working properly (al...
Centrifugal asked 19/11, 2022 at 18:15
21
var fd = new FormData();
fd.append("fileToUpload", document.getElementById('fileToUpload').files[0]);
var xhr = new XMLHttpRequest();
xhr.open("POST", "uph.php");
xhr.send(fd);
uph.php:
var_dump...
Gleiwitz asked 20/10, 2012 at 14:32
9
Solved
I need to define my Service Worker as persistent in my Chrome extension because I'm using the webRequest API to intercept some data passed in a form for a specific request, but I don't know how I c...
Grisby asked 13/3, 2021 at 20:16
8
Solved
Is it possible to prevent the browser from following redirects when sending XMLHttpRequest-s (i.e. to get the redirect status code back and handle it myself)?
Betz asked 23/10, 2008 at 1:40
3
Solved
I'm trying to get text file data located in the same directory where my .vue file is. But it's not returning the text on both chrome and firefox. Instead it's returning following response, which is...
Donau asked 14/2, 2019 at 19:27
8
Solved
I want to send a new FormData() as the body of a POST request using the fetch api
The operation looks something like this:
var formData = new FormData()
formData.append('myfile', file, 'someFileNam...
Granitite asked 1/9, 2016 at 20:33
13
Solved
I am stuck with this CORS problem, even though I set the server (nginx/node.js) with the appropriate headers.
I can see in Chrome Network pane -> Response Headers:
Access-Control-Allow-Origin:htt...
Drink asked 4/6, 2012 at 14:42
23
Cannot get data with XMLHttpRequest (status 0 and responseText is empty):
xmlhttp=new XMLHttpRequest();
xmlhttp.open("GET","http://www.w3schools.com/XML/cd_catalog.xml", true);
xmlhttp.onreadysta...
Wandie asked 15/2, 2011 at 15:54
3
Solved
So my problem is:
Whenever I try to make an XMLHttpRequest to my HTTP server from my web page (same machine, different port), I get blocked with this error:
Access to XMLHttpRequest at 'localhost:8...
Enrich asked 11/1, 2022 at 10:37
4
Solved
I know that Fetch API uses Promises and both of them allow you to do AJAX requests to a server.
I have read that Fetch API has some extra features, which aren't available in XMLHttpRequest (and in...
Praline asked 22/2, 2016 at 9:5
4
I have a content script in my Chrome extension which runs on some HTTPS page. It is trying to send a POST request to an HTTP page (by means of a background script) which is a route for an API that ...
Earthman asked 5/4, 2016 at 3:2
8
Solved
I have set axios.defaults.timeout = 1000;
I stopped the server that provides me with the APIs.
But it takes more than 1s to timeout after sending a request.
This is how my request looks:
import...
Could asked 18/4, 2016 at 9:44
2
In the iOS WKWebView, is there a way to detect when the website makes a resource request (e.g. an HttpRequest via Ajax)?
In Android, there is a very convenient method "shouldInterceptRequest&q...
Gynophore asked 30/12, 2023 at 18:11
2
Solved
I am new to XMLHttpRequest. I dont understand why do we write onload() function before send() function. onload() function process the response what we receive and send() function sends a request to...
Wixted asked 27/7, 2017 at 9:23
6
I'm trying to do requests to my REST API, I have no problems with Firefox, but in Chrome I can't get the browser to work, always throws 200 OK, because no if-none-match (or similar) header is sent ...
Tamathatamaulipas asked 29/3, 2014 at 16:51
6
Solved
I need to open a local html file in the browser. The javascript works fine but ajax stops working and XMLHttpRequest gives a cross origin error. Is there a way to run ajax from local directory. It ...
Fracture asked 19/4, 2017 at 10:37
1 Next >
© 2022 - 2024 — McMap. All rights reserved.