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;<BR />esri.config.defaults.io.corsEnabledServers.push("go-tiles1.gistda.or.th");