ArcGIS Server 报错 set the request‘s mode to ‘no-cors‘ to fetch the resource with CORS disabled.

前端请求ArcGIS Server 报错:from origin 'http://127.0.0.1:5501' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'http://127.0.0.1:5500' that is not equal to the supplied origin. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

同一电脑同一请求同一服务数据,关掉一个数据服务请求(前端或其他),F12,长按鼠标右键,清除缓存即可。

猜你喜欢

转载自blog.csdn.net/qq_51165365/article/details/130905945