Select to view content in your preferred language

Running in to CORS issue when we tried to fetch results from Arcgis portal

10-28-2022 02:15 AM
New Contributor

Hello All, 

Do we need to enable any settings in portal to allow the cross origin request.

Thank you.

0 Kudos
1 Reply
Esri Contributor

Hi @RamadeviAchanta -

The ArcGIS API for JavaScript has automatic detection for CORSTo support CORS, web servers (both the one that's hosting your ArcGIS Portal site and the one hosting your JS API application) must be pre-configured for it and browsers must be able to support it. For additional details on enabling this in a web server, please visit You can find more information regarding the JS API at this documentation page discussing CORS:

Hope this helps!

0 Kudos