Is there anyway to force a layer to always use a proxy? "esri.config.defaults.io.alwaysUseProxy = true" forces all the layers to use the proxy, but I wanted only my services to go throug it, and not the ESRI Basemaps.
Just delete that line. Having it in there does just what said you don't want - every call goes through the proxy. Leaving it out doesn't mean your proxy is ignored, it means it will only be used "as needed" and not for every layer.
Thank you for your response. I know that, but that's not the point. I want to access the services hosted on my ArcGIS Server using ALWAYS the proxy, but the basemaps from arcgisonline (for eg.) to use a "normal" access... I think that this is not possible because there'e no parameter to define it.
Just delete that line. Having it in there does just what said you don't want - every call goes through the proxy. Leaving it out doesn't mean your proxy is ignored, it means it will only be used "as needed" and not for every layer.