Unable to Access Most Esri Basemaps in WebAppBuilder (Enterprise)

1080
10
06-28-2022 08:34 AM
JCGuarneri
Occasional Contributor II

I have a curious issue with the Esri basemaps in my Enterprise web apps in 10.8.1. When I add a basemap switcher widget, I only see a selection of the Esri basemaps. Everywhere else (web maps, dashboards, etc) I see this in the basemap gallery:

JCGuarneri_0-1656430145691.png

 

In web app builder, I see this in the basemap widget:

JCGuarneri_1-1656430174860.png

 

I'm not sure what's going on with those duplicates, either. Anyway, when I look at the developer console in my browser, I get the error :

 

XMLHttpRequest at 'https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer?f=json' from origin 'https://myserver.mydomain.com' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute..

The only thing I could find to resolve this was changing settings in Server Admin per this page:

https://enterprise.arcgis.com/en/server/latest/administer/linux/restricting-cross-domain-requests-to...

but that did not resolve it. I also find it curious that it's only an issue for WebAppBuilder. Has anyone else encountered this problem? And did you find a solution?

 

0 Kudos
10 Replies
mhperso
New Contributor

Hello @JCGuarneri  and @ElizabethLorenaRodriguez I have the same problem on one of my AGE.

We are runing 11.1 version of AGE and our PROD instance has a strange behaviour with basemaps.

When we develop a EXB APP everything is fine but as soon as we publish it, the published version is unable to work with basemaps (the satelite imagery is OK though). We get a CORS Error in the network console when the app try to reach https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer?f=json

Accessing this URL in a browser from the server is OK.

I dont know what to do ...

0 Kudos