Select to view content in your preferred language

How to use proxyUrl in 3.4?

938
3
05-15-2013 04:38 AM
CoreyAlix
Regular Contributor
The following code does not affect the proxy.  How is this done in 3.4?

define(["esri/config"], function (esriConfig) { esriConfig.defaults.io.proxyUrl = "foo"; });
0 Kudos
3 Replies
CoreyAlix
Regular Contributor
I guess I was missing this
esriConfig.defaults.io.alwaysUseProxy = true;
0 Kudos
JianHuang
Deactivated User
No, you don't have to set alwaysUseProxy as true. It's not recommended unless it's necessary. For example, if the services and the image output folders are behind fire wall or other security settings, and you put the credentials in the proxy. For that case, proxy is always necessary.
0 Kudos
JeffJacobson
Frequent Contributor
0 Kudos