How to handle CORS Issue without using proxy server

528
1
08-23-2022 10:51 PM
YashvitNaik
New Contributor III

I'm using ArcGIS Javascript API 4.23 for a web application, whenever i try to load the map, I'm getting CORS error. Earlier when I was using API 4.15, everything was working fine. since the version is upgraded, started getting these errors.

is there a way I can handle this without using a proxy server?

corsError.PNG

0 Kudos
1 Reply
UndralBatsukh
Esri Regular Contributor

Hi there, 

This guide topic explains why you are getting this error and the three ways to handle this: https://developers.arcgis.com/javascript/latest/cors/

 

-Undral