kmdd33
V2EX  ›  问与答

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

  •  
  •   kmdd33 · Mar 28, 2017 · 2156 views
    This topic created in 3384 days ago, the information mentioned may be changed or developed.

    先上贴图:

    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 replies    2017-03-28 19:58:07 +08:00
    kmdd33
        1
    kmdd33  
    OP
       Mar 28, 2017 via iPad
    用了 cloudflare 的 301 跳转和 pagerules
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2926 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 07:38 · PVG 15:38 · LAX 00:38 · JFK 03:38
    ♥ Do have faith in what you're doing.