Select to view content in your preferred language

Access-Control-Allow-Origin after upgradation to ArcGIS Enterprise 11.3

190
1
09-23-2024 04:22 AM
bilalalamgis
Occasional Contributor

My application is working properly but after upgradation to ArcGIS Enterprise to 11.3 I am getting “Access-Control-Allow-Origin error”.

I also set in"https://yourserver.com/arcgis/admin/system/handlers/rest/servicesdirectory" Allowed Origin “*” but still getting this error. Can anyone help me in this what may be the root cause of this error.

 

Thanks and Regards

Bilal 

0 Kudos
1 Reply
AndyClark2
Emerging Contributor

It's not ESRI recommended, but we ended up using the IIS CORS module configured appropriately against the web adapter for our server, which gives us more control.

 

In relation to your specific problem, have you tried debugging in the browser (CTRL+SHIFT+I) and looking at the headers, it could be some proxy or load balancer may be adding it's own value for that header so the end browser may be receiving something like Access-Control-Allow-Origin:*.blah.com,*  (a comma concatenation on all headers assigned at each stage) 

0 Kudos