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

提问,有偿

  •  
  •   satoki · Jan 11, 2021 · 1703 views
    This topic created in 1932 days ago, the information mentioned may be changed or developed.

    (index):1 Refused to load the script 'https://unpkg.com/element-ui/lib/index.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' 'unsafe-eval' http://cdnjs.cloudflare.com ". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

    6 replies    2021-01-11 15:54:16 +08:00
    shakaraka
        1
    shakaraka  
    PRO
       Jan 11, 2021
    satoki
        2
    satoki  
    OP
       Jan 11, 2021
    @wunonglin 不是呢
    wei745359223
        3
    wei745359223  
       Jan 11, 2021
    header 里追加一下信任 domian
    https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CSP
    satoki
        4
    satoki  
    OP
       Jan 11, 2021
    @wei745359223 <meta http-equiv="content-security-policy-report-only" content="Content-Security-Policy: default-src 'self' *.trusted.com">是加这个嘛,没起作用
    wei745359223
        5
    wei745359223  
       Jan 11, 2021
    @satoki
    加你需要信任的域名 unpkg.com
    satoki
        6
    satoki  
    OP
       Jan 11, 2021
    @wei745359223 老哥方便的话加个 v 吧 MTc2MDE0OTc2NzQ=
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2966 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:25 · PVG 23:25 · LAX 08:25 · JFK 11:25
    ♥ Do have faith in what you're doing.