arcgis api for JavaScript4.10字体文件提示跨域

我在调用arcgis api for javaScript时,控制台总是会提示9个字体文件跨域的问题,但是我对应的跨域访问已经开启。想请教一下这个问题该怎么解决
跨域.png
已邀请:

陈辰 - The wisest is she who knows she does not know

赞同来自:

再确认一下112.35.87.16这台机器有没有配置Access-Control-Allow-Orgin 这个header。

GIS晴天 - webgis爱好者

赞同来自:

http://zhihu.esrichina.com.cn/article/3514  按照这个教程一步步配置,就可以解决问题,实测,没有问题。

dhy

赞同来自:

我用的4.11也报这个问题了,而且我在nginx也配置了跨域,但浏览器仍然提示,楼主解决这个问题了么?

arcgis-cors.png
    # nginx 跨域
location / {
add_header Access-Control-Allow-Origin * always;
add_header Access-Control-Allow-Credentials true;
add_header Access-Control-Allow-Headers origin,x-requested-with,content-type;
add_header Access-Control-Allow-Methods POST,GET,OPTIONS;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}

要回复问题请先登录注册