V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
piloots
V2EX  ›  问与答

Chrome for mac 版本 76.0.3809.87(正式版本) (64 位)字体图标跨域不显示?

  •  
  •   piloots · 2019-08-05 08:27:43 +08:00 · 1526 次点击
    这是一个创建于 1930 天前的主题,其中的信息可能已经有所发展或是发生改变。

    前两天升级了 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.

    6 条回复    2019-08-05 12:00:43 +08:00
    piloots
        1
    piloots  
    OP
       2019-08-05 08:29:36 +08:00
    尝试
    1.重启 wifi
    2.重启浏览器 /清除缓存 /重启电脑
    都没有解决这个问题,访问所有网站(字体文件)都不显示....江湖救急
    piloots
        2
    piloots  
    OP
       2019-08-05 08:35:45 +08:00
    目前的环境和之前的环境,仅升级了 chrome 浏览器,并未增加浏览器插件,也没有升级系统和路由固件 /路由设置,有 v 友使用这个版本 chrome 是正常的吗?
    um1ng
        3
    um1ng  
       2019-08-05 10:10:51 +08:00
    没遇到过
    virusdefender
        4
    virusdefender  
       2019-08-05 10:57:32 +08:00
    字体我记得一直不能跨域啊,可能是 cdn 的问题?
    jarnanchen
        5
    jarnanchen  
       2019-08-05 11:12:01 +08:00
    同系统环境并未出现你所说的问题
    piloots
        6
    piloots  
    OP
       2019-08-05 12:00:43 +08:00
    已经解决,因为我伪造了 x-forwarded-for。。。。某些 chrome 最近更新策略修改了,之前的版本都没有这个问题
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   982 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 22:55 · PVG 06:55 · LAX 14:55 · JFK 17:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.