AnsweredAssumed Answered

addProxyRule and insecure rest/info checks

Question asked by mattlane86 on Apr 10, 2014
Latest reply on Apr 14, 2014 by JGravois-esristaff
I recently added an ArcGIS Server layer to a web app where the source does not support https. I've set up the addProxyRule, configured the proxy config, and the layer loads just fine and I can see the proxy being used in the network traffic.

However, the initial request to the rest/info?f=json is always without using the proxy, and it causes my page to lose it's end-to-end security because it 'displays insecure content'. Is this a bug in the api? It exists in 3.7, 3.8, 3.9.

urlUtils.addProxyRule({ proxyUrl: '/proxy/proxy.ashx', urlPrefix: '' });
fl = new FeatureLayer('');

The page at 'https://<MYURL>' was loaded over HTTPS, but displayed insecure content from '': this content should also be loaded over HTTPS.