最新chrome浏览器不支持小写的response header
Access to fetch at 'https://g.alicdn.com/alilog/??s/8.12.2/plugin/aplus_client.js,aplus_cplugin/0.7.4/toolkit.js,aplus_cplugin/0.7.4/monitor.js,s/8.12.2/aplus_std.js,s/8.12.2/plugin/aplus_spmact.js?v=20190808160107' from origin 'https://www.aliyun.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
服务器返回信息中包含 access-control-allow-origin: * 但是最新版本chrome浏览器提示 No 'Access-Control-Allow-Origin' header is present on the requested resource
希望改为Access-Control-Allow-Origin 这种比较普遍的写法
- 下载最新版本chrome
- 请求阿里云
- 尝试登录 或者 打开浏览器开发人员工具 Console面板
Windows 10 17763.615 最新chrome 版本 76.0.3809.100(正式版本) (64 位) 经过多台机器测试 都存在相同问题