I created a WAB application on arcgis online and I downloaded and deployed this application on my iis server.
I then configured with a proxy (user / password) and everything works fine. No need to enter a user / password.
The only problem is that all the thumbnails in basemapgallery is not visible. I receive a 403 error when downloading ... http: //xxx.maps.arcgis.com/sharing/rest/content/items/xxx/info/thumbnail/xx.png
Does anyone have a solution?
It seems to be hitting a URL which hasn't been permitted in proxy configuration.
JS API with proxy.ashx ArcGIS Online basemap 403 issue
Everything seems to be okay, only thumbnails do not cross through the proxy
Sebastien,
So do you have the vdq.maps.arcgis.com in you config.json for your proxy? Can you show your config.proxy?
Yes...
Sebastian,
I will do some testing and let you know.
Sebastian,
What does your apps config.json look like. Here is how mine looks (notice the rules):
"httpProxy": { "useProxy": true, "alwaysUseProxy": false, "url": "/WAB/Proxy/proxy.ashx", "rules": [{ "urlPrefix": "http://calhoun.maps.arcgis.com/", "proxyUrl": "/WAB/Proxy/proxy.ashx" }] }
"httpProxy": {
"useProxy": true,
"alwaysUseProxy": false,
"url": "http://xxx/Apps/PlanifArbres/proxy.ashx",
"rules": [{
"urlPrefix": "http://vdq.maps.arcgis.com/",
"proxyUrl": "http://xxx/Apps/PlanifArbres/proxy.ashx"
}]
}
Sebastien,
OK, looks like it is time to call tech support then.
I think is a bug in the basemapgallery widget. When I modify with this lines all works fine.
if (c.thumbnailUrl.indexOf("vdq.maps.arcgis.com") > -1) this.thumbnailUrl = "http://cartegeoacc/Apps/PlanifArbres/proxy.ashx?" + c.thumbnailUrl;
else this.thumbnailUrl = c.thumbnailUrl;