XHR (also known as XMLHttpRequest) is a JavaScript object, which is designed to communicate with servers. It is an object that initializes the Ajax request in JavaScript. This object is used to send requests to, and receive responses from, a server asynchronously (i.e. in the background without ...
285
votes
10answers
351k views
XmlHttpRequest error: Origin null is not allowed by Access-Control-Allow-Origin
I'm developing a page that pulls images from Flickr and Panoramio via jQuery's AJAX support.
The Flickr side is working fine, but when I try to $.get(url, callback) from Panoramio, I see an error in ...
174
votes
8answers
53k views
How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers?
In Firefox 3, the answer is 6 per domain: as soon as a 7th XmlHttpRequest (on any tab) to the same domain is fired, it is queued until one of the other 6 finish.
What are the numbers for the other ...
150
votes
12answers
119k views
Access-Control-Allow-Origin Multiple Origin Domains?
Is there a way to allow multiple cross-domains using the Access-Control-Allow-Origin header?
I'm aware of the *, but it is too open. I really want to allow just a couple domains.
As an example, ...
115
votes
4answers
145k views
XMLHttpRequest Origin null is not allowed Access-Control-Access-Allow 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 files are local, no resources are used online.
When I try to use the AJAXSLT plugin for ...
96
votes
11answers
135k views
Origin is not allowed by Access-Control-Allow-Origin
I'm making a Ajax.request to a remote PHP server in a Sencha Touch 2 application (wrapped in phonegap).
The response from the server is the following:
XMLHttpRequest cannot load ...
49
votes
2answers
14k views
Prevent redirection of Xmlhttprequest
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)?
47
votes
0answers
6k views
Why have “while(1);” in XmlHttpRequest response? [duplicate]
Possible Duplicate:
Why does Google prepend while(1); to their JSON responses?
I'm playing firebug with Google Calendar. I happens to find that some XHR request has response like below:
...
36
votes
4answers
58k views
“Origin null is not allowed by Access-Control-Allow-Origin” in Chrome. Why?
I am working on some Javascript to run locally on my PC. I am using a jQuery CSV plugin (http://plugins.jquery.com/project/csv) to load load a csv file into javascript arrays. The script is simple:
...
34
votes
6answers
26k views
Jquery: Why am I getting an OPTIONS request insted of a GET request?
With this code http://paulisageek.com/tmp/options.html :
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script>
<script>
...
33
votes
6answers
5k views
Web Scraping in a Google Chrome Extension (JavaScript + Chrome APIs)
What are the best options for performing a Web Scraping from within a Google Chrome Extension with JavaScript and whatever more technologies are available. Other JavaScript-libraries are also ...
32
votes
2answers
18k views
jQuery posting valid json in request body
So according to the jQuery Ajax docs, it serializes data in the form of a query string when sending requests, but setting processData:false should allow me to send actual JSON in the body. ...
29
votes
8answers
43k views
Firefox setting to enable cross domain ajax request
I need to temporally allow cross domain XMLHttpRequest. Changing firefox security setting seems to be the way to go. But I've tried with this and this but they didnt work. Has anyone been able to ...
27
votes
2answers
15k views
What do the different readystates in XMLHttpRequest mean, and how can I use them?
XMLHttpRequest has 5 readystates, and I only use 1 of them (the last one, 4). What are the others for, and what practical applications can I use them in.
21
votes
17answers
14k views
How secure is a HTTP POST?
Is a POST secure enough to send login credentials over?
Or is an SSL connection a must?
21
votes
0answers
48k views
Access Control Allow Origin not allowed by [duplicate]
Possible Duplicate:
Why am I seeing an “origin is not allowed by Access-Control-Allow-Origin” error here?
I am facing problem with my code
can anyone tell me whats wrong with this
Origin ...