I have a xml content stored in the location, http://localhost:8080/cleo-primer/rest/elements/search?uid=1&query=facebook
<
You are doing a cross origin call that is not allowed. You are calling from: http://localhost
to http://localhost:8080
. The call isn't executed and there will be NO response. Chrome/Safari will show an error like this in the console:
XMLHttpRequest cannot load
http://targeturl
Originhttp://localhost
is not allowed by Access-Control-Allow-Origin.
More info: http://en.wikipedia.org/wiki/Same_origin_policy#Origin_determination_rules
If you can make modifications to the back-end, making it send the right headers, will fix your problem... (Access-Control-Allow-Origin yourdomain
or Access-Control-Allow-Origin *
for allow all)
More info: http://enable-cors.org
A couple of other options to be complete...