[alibaba/tengine]最新chrome浏览器不支持小写的response header

2024-08-21 988 views
6

最新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 这种比较普遍的写法

  1. 下载最新版本chrome
  2. 请求阿里云
  3. 尝试登录 或者 打开浏览器开发人员工具 Console面板

Windows 10 17763.615 最新chrome 版本 76.0.3809.100(正式版本) (64 位) 经过多台机器测试 都存在相同问题

回答

6

十分抱歉 经过后续得对比发现 是 一款名为 Alexa Traffic Rank的浏览器插件导致的不兼容 这款插件在老版本的chrome中也没这问题 在最新版本chrome中才产生了这个问题 禁用插件后 一切正常了