403 Error on Thumbnails from Basemap Gallery

4064
1
12-18-2013 03:16 AM
KevinSadrak
New Contributor III
I am creating a template for Arcgis.com based on the TimeSlider template download. 

I added a basemap gallery from the javascript API sample, and the basemap works, I can switch maps, but I do not get any thumbnails. 

The response I get is as follows:
"NetworkError: 403 Forbidden - http://www.arcgis.com/sharing/rest/content/items/8b3b470883a744aeb60e5fff0a319ce7/info/thumbnail/tem....."

It would appear that the token the javascript api is adding on is the problem, if the token is removed I can navigate and see the thumbnail.

Is there a way to remedy this?

Is the problem that the URL string is too long and it is being cut off therefor requesting a bad URL and the server returning a 403 Forbidden?

The code for the basemap Gallery is:
  var basemapGallery = new esri.dijit.BasemapGallery({
          showArcGISBasemaps:true,
          map: map
        }, "basemapGallery");
        basemapGallery.startup();
Very basic right from the sample!

It is not in AMD format, as the Timeslider template switches between legacy and AMD.   My project timeline doesn't permit enough time for me to rewrite the legacy dojo.

Thanks.
Tags (2)
0 Kudos
1 Reply
KevinSadrak
New Contributor III
I found the issue, my proxy was not configured correctly, that's why there was the ... at the end. 

Once the proxy was setup the thumbnails showed in the basemap gallery.
0 Kudos