This is the error that never goes away and drives me nuts
The site is using the latest 3.x api
It does NOT use the proxy.aspx page
the server is , lets say "esri-gis1"
there is an internal site in the internal DSN, let's call that "maps"
users access the site by using "maps" as a URL
The code calls maps from esri-gis1\arcgis\rest\services......
The map page works fine. Requests are fine and if I examine the response headers for the basic requests it shows * in the Allow-Control-Allow-Origin
The issues start when I call, for example I call the geometry service
http://esri-gis1/arcgis/rest/services/Utilities/Geometry/GeometryServer
In a task that I use to convert the local grid to Long Lat
Then I get the
Access to XMLHttpRequest at 'http://esri-gis1/arcgis/rest/services/Utilities/Geometry/GeometryServer/project?.........' from origin 'http://maps' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I got around this on the current site by using the Proxy page and adding
esri.config.defaults.io.corsEnabledServers.push("esri-gis1");
But I ind the Proxy page adds more trouble than it solves.
Any help please?
ACM