1.资源请求错误

......has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

 

arcGIS 本地部署后,常见错误整理

添加如下响应头

Access-Control-Allow-Credentials:true
Access-Control-Allow-Headers:origin,x-requested-with,content-type
Access-Control-Allow-Methods:POST,GET,OPTIONS
Access-Control-Allow-Origin:*
arcGIS 本地部署后,常见错误整理

 

2.字体(.woff)错误 

Avenir_Next_W00_400.woff2 net::ERR_ABORTED 404 (Not Found)

 

在MIME类型中添加如下两个字体(.woff /.woff2)

arcGIS 本地部署后,常见错误整理

 

相关文章: