swagger在本地没问题可是上传至服务器报错解决办法Can't read from server. It may not have the appropriate access-control-or
上传至服务器swagger页面报了这样一个错误,
谷歌浏览器报错
因为HTTPS页面里动态的引入HTTP资源,比如引入一个js文件,会被直接block掉的.在HTTPS页面里通过AJAX的方式请求HTTP资源,也会被直接block掉的。
最简单一个解决办法在swagger/dist/index.html文件里URL的http改为https
原创
2017-12-07 10:10:40 ·
11710 阅读 ·
1 评论