AnsweredAssumed Answered

Is there anyway for WMSLayer to not being required proxy or CORS enabled?

Question asked by matrixhazard on Nov 4, 2015
Latest reply on Nov 9, 2015 by matrixhazard

Hi, I'm currently trying to add WMSLayer to my map. I follow this example and it works well.

 

Here is my code

 

 

var layer = new Layer("http://go-tiles1.gistda.or.th/mapproxy/service", { id : "MY_WMS_LAYER" });

map.addLayer(layer);

 

 

However, this one requires me to use proxy page. Is there any way that allow me to not use proxy page when creating WMSLayer? I try to add use CORS enabled feature by adding this below code but it is also not working too.

 

esri.config.defaults.io.alwaysUseProxy = false;
esri.config.defaults.io.corsEnabledServers.push("go-tiles1.gistda.or.th");

Outcomes