I got the esri js api 3.14 deployed on a server and an application that is reachable over https.
Now I got a proxy script that delivers the map requests.
When you look at the requests of the page you can see that there is ONE request (an info request to the rest interace) that goes directly to the internalServer.
Firefox says:
I added the proxy script rule like this:
urlUtils.addProxyRule({
urlPrefix: "http://srvutdemo102/arcgis/rest/services/utjsc_de/Grundkarte",
proxyUrl: "ESRI_proxy.jsp"
});
Is it possible to tell the js-api to use the proxy script for this "initial" info request?
Best Answer
If you need to share your services in applications that utilize HTTPS, then you are far better off configuring ArcGIS Server to support it than relying on a proxy to attempt to 'fake it'.
http://blogs.esri.com/esri/arcgis/2015/03/11/sharing-web-gis-services-always-enable-tls/
that being said, the info request is a check for CORS support, so if you know that the server already supports CORS (or that you won't need it to), you can skip sending the request by calling
example here.