Select to view content in your preferred language

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

357
1
10-28-2022 02:15 AM
RamadeviAchanta
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
LaurenBoyd
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 enable-cors.org. You can find more information regarding the JS API at this documentation page discussing CORS: https://developers.arcgis.com/javascript/latest/cors/

Hope this helps!

Lauren
0 Kudos