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

大家有谁用过 cloudflare? console 出现了一个 A Parser-blocking 错误。

  •  
  •   kmdd33 · 2017-03-28 16:49:09 +08:00 · 1760 次点击
    这是一个创建于 2623 天前的主题,其中的信息可能已经有所发展或是发生改变。

    先上贴图:

    chrome : https://cl.ly/132h1I2P2U3i

    firefox : https://cl.ly/2T3p0X100P3K

    错误显示: A Parser-blocking, cross-origin script, https://ajax.cloudflare.com/cdn-cgi/nexp/dok3v=f2befc48d1/cloudflare.min.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.

    firefox 显示 4 个升级 http 到 https 的请求,我应该在哪里升级呢?

    自己一开始为了消除 mixed contents 错误,把 nginx 里面的 nginx.conf 的 server {}中添加

    server { ...

    add_header Content-Security-Policy upgrade-insecure-requests;

    ...} 请大家指导

    1 条回复    2017-03-28 19:58:07 +08:00
    kmdd33
        1
    kmdd33  
    OP
       2017-03-28 19:58:07 +08:00 via iPad
    用了 cloudflare 的 301 跳转和 pagerules
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   956 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 19:06 · PVG 03:06 · LAX 12:06 · JFK 15:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.