配置 Nginx 跨域访问 进入 nginx 的 html 目录,新建 crossdomain.xml,具体路径: /usr/local/nginx/html/crossdomain.xml在 crossdomain.xml 中添加类似如下内容: 注意:默认情况下,/usr/local/nginx/html/crossdomain.xml 是不存在的。 转载于:https://blog.51cto.com/zhengdzy/1976124