satoki
V2EX  ›  问与答

提问,有偿

  •  
  •   satoki · Jan 11, 2021 · 2173 views
    This topic created in 2141 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
    satoki
    satoki
    OP
    Jan 11, 2021
    2
    @wunonglin 不是呢
    wei745359223
    wei745359223
    Jan 11, 2021
    3
    header 里追加一下信任 domian
    https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CSP
    satoki
    satoki
    OP
    Jan 11, 2021
    4
    @wei745359223 <meta http-equiv="content-security-policy-report-only" content="Content-Security-Policy: default-src 'self' *.trusted.com">是加这个嘛,没起作用
    wei745359223
    wei745359223
    Jan 11, 2021
    5
    @satoki
    加你需要信任的域名 unpkg.com
    satoki
    satoki
    OP
    Jan 11, 2021
    6
    @wei745359223 老哥方便的话加个 v 吧 MTc2MDE0OTc2NzQ=
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2614 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 04:29 · PVG 12:29 · LAX 20:29 · JFK 23:29
    ♥ Do have faith in what you're doing.