zoukankan      html  css  js  c++  java
  • options.html:1 Refused to load the script 'xxxx' because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem: chrome-extension-resource:".

    /*********************************************************************************
     *  options.html:1 Refused to load the script 'xxxx' because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem: chrome-extension-resource:".
     * 说明:
     *     使用Chrome扩展功能的时候,加载js库导致的错误,不要使用网络加载就行了。
     *
     *                                              2018-4-2 深圳 宝安西乡 曾剑锋
     ********************************************************************************/
    
    一、参考文档:
        1. How to fix chrome-extension inline JavaScript invocation error?
            https://stackoverflow.com/questions/38483837/please-provide-a-valid-cache-path
    2. Only local script and and object resources are loaded
    https://developer.chrome.com/extensions/contentSecurityPolicy#resourceLoading
    二、解决方法: I believe a better way could be downloading the remote client.js and include it as a local script.
  • 相关阅读:
    python基础--文件操作实现全文或单行替换
    python基础7--集合
    python读写json文件
    python基础6--目录结构
    python基础5--模块
    Ubuntu的一些常用快捷键
    ubuntu dpkg 命令详解
    linux(Ubuntu)安装QQ2013
    fcitx-sogoupinyin下载地址和安装
    Ubuntu下装QQ2014
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/8693063.html
Copyright © 2011-2022 走看看