Select to view content in your preferred language

CORS Errors when using Experience builder with Collaboration-shared Map and Feature Layer

265
0
yesterday
Labels (2)
1bcm
by Esri Contributor
Esri Contributor

Hi everyone, 

I am having a problem with ArcGIS Online using a Feature layer that was shared via a collaboration.

The feature layer comes from an on-prem deployment of ArcGIS Enterprise 10.9.1, a Distributed Collaboration was setup between the two orgs, with the purpose of not using storage credits from Online and using the existing GIS Hosting solution from ArcGIS Enterprise.

The problem arises when trying to use the Feature Layer Directly or a Map with the Feature Layer as Data Source.

Opening DevTools on the browser yields the following error:

Access to fetch at 'https://gis.orgname.net/server/rest/services/Hosted/ServiceName/FeatureServer/layers?f=json' from origin 'https://experience.arcgis.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

And Experience Builder cannot access the Data on the shared Feature Layer. 

On ArcGIS Portal both the options Allow origins & Trusted Servers from the Security tab have experience.arcgis.com whitelisted.

And Online has gis.orgname.net whitelisted too on those same options.

Any input would be appreciated for any possible Fix for this.

 

0 Kudos
0 Replies