前两天升级了 chrome for mac 版本 76.0.3809.87 (正式版本) ( 64 位),发现打开所有网站比如淘宝,所有字体文件浏览器报跨域不显示,你们有这个情况吗?
不上图了,粘贴下来自 chrome console 控制台中的错误信息,访问淘宝首页。
Access to font at 'https://at.alicdn.com/t/font_1404888168_2057645.woff' from origin 'https://www.taobao.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. font_1404888168_2057645.woff:1 Failed to load resource: net::ERR_FAILED (index):1 Access to font at 'https://at.alicdn.com/t/font_403341_n8tj33yn5peng66r.woff' from origin 'https://www.taobao.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. font_403341_n8tj33yn5peng66r.woff:1 Failed to load resource: net::ERR_FAILED (index):1 Access to font at 'https://at.alicdn.com/t/font_1404888168_2057645.ttf' from origin 'https://www.taobao.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. font_1404888168_2057645.ttf:1 Failed to load resource: net::ERR_FAILED (index):1 Access to font at 'https://at.alicdn.com/t/font_403341_n8tj33yn5peng66r.ttf' from origin 'https://www.taobao.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. font_403341_n8tj33yn5peng66r.ttf:1 Failed to load resource: net::ERR_FAILED ??kissy/k/6.2.4/seed-min.js,kg/global-util/1.0.7/index-min.js,tb/tracker/4.3.12/index.js,kg/tb-nav/2.5.3/index-min.js,secdev/sufei_data/3.3.5/index.js:6 Uncaught (in promise) DOMException: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to parse SessionDescription. a=msid: Missing track ID in msid attribute.
1
piloots OP 尝试
1.重启 wifi 2.重启浏览器 /清除缓存 /重启电脑 都没有解决这个问题,访问所有网站(字体文件)都不显示....江湖救急 |
2
piloots OP 目前的环境和之前的环境,仅升级了 chrome 浏览器,并未增加浏览器插件,也没有升级系统和路由固件 /路由设置,有 v 友使用这个版本 chrome 是正常的吗?
|
3
um1ng 2019-08-05 10:10:51 +08:00
没遇到过
|
4
virusdefender 2019-08-05 10:57:32 +08:00
字体我记得一直不能跨域啊,可能是 cdn 的问题?
|
5
jarnanchen 2019-08-05 11:12:01 +08:00
同系统环境并未出现你所说的问题
|
6
piloots OP 已经解决,因为我伪造了 x-forwarded-for。。。。某些 chrome 最近更新策略修改了,之前的版本都没有这个问题
|