V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
indev
V2EX  ›  问与答

Google Fonts 官网把自己屏蔽了吗?

  •  
  •   indev · Feb 25, 2021 · 2894 views
    This topic created in 1898 days ago, the information mentioned may be changed or developed.

    Firefox 上去访问 fonts.google.com ,所有字体貌似都无法预览,CORS 请求未能成功,不知道是我浏览器的问题还是 Google CORS 设置的问题?

    部分 log:

    已拦截跨源请求:同源策略禁止读取位于 https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxK.woff2 的远程资源。(原因:CORS 请求未能成功)。
    downloadable font: download failed (font-family: "Roboto" style:normal weight:400 stretch:100 src index:0): bad URI or cross-site access not allowed source: https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxK.woff2
    
    ...
    
    4 replies    2021-02-26 12:37:22 +08:00
    germain
        1
    germain  
       Feb 25, 2021
    北美直连 没问题 各种浏览器
    indev
        2
    indev  
    OP
       Feb 25, 2021
    @germain 是吼,我也发现在 Edge 上没问题,看来是 Firefox 的设置了,https://sm.ms/image/YMBKXJPmuFZndc8
    oott123
        3
    oott123  
       Feb 26, 2021 via Android
    Firefox 的 CORS 请求未能成功 错误并非是说服务器的 CORS 头配置出现错误,更有可能的情况是连接被中断 /被扩展拦截之类的。错误提示旁边有个链接,你应该点进去看看。
    indev
        4
    indev  
    OP
       Feb 26, 2021 via Android
    @oott123 嗯,是我 DNS filter 引起的😂
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3305 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 10:46 · PVG 18:46 · LAX 03:46 · JFK 06:46
    ♥ Do have faith in what you're doing.