Proxy and BaseMapGallery thumbnail

2992
9
11-27-2015 07:14 AM
SebastienPelletier
Occasional Contributor

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?

0 Kudos
9 Replies
JayantaPoddar
MVP Esteemed Contributor

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



Think Location
0 Kudos
SebastienPelletier
Occasional Contributor

Everything seems to be okay, only thumbnails do not cross through the proxyProxyBug.png

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Sebastien,

  So do you have the vdq.maps.arcgis.com in you config.json for your proxy? Can you show your config.proxy?

0 Kudos
SebastienPelletier
Occasional Contributor

Yes...

proxyconfig.png

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Sebastian,

  I will do some testing and let you know.

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

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" 
    }] 
  }
SebastienPelletier
Occasional Contributor

   "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"

    }]

   }

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Sebastien,

   OK, looks like it is time to call tech support then.

0 Kudos
SebastienPelletier
Occasional Contributor

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;