Hello everyone,
I am calling from javascript in a WebApp Application a rest web service using json,
var requestHandle = esriRequest({
"url": url,
"handleAs": "json",
}, {
useProxy: true,
usePost: false,
disableIdentityLookup: true
});
// requestHandle.then(this.requestSucceeded, this.requestFailed);
requestHandle.then(
lang.hitch(this, function (response, io) {
....
and I am getting the following error message:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.
this code was working until I upgrade the asp.net application from framework .Net Framework 2 to .Net Framework 4
Thanks