Chrome Extension - Content Security Policy - executing inline code

后端 未结 6 1657
梦谈多话
梦谈多话 2020-12-08 10:15

I am using an external JavaScript lib in my chrome extension. I has inline execution, so I get following kind of error

(The error I get on console)

6条回答
  •  [愿得一人]
    2020-12-08 10:37

    nonce is specifically ignored by Chrome Extensions as unsafe. As of Sep 2020 (v.85) only the 'sha256..' option works. But is inconvenient since the hash changes with every html file update.

提交回复
热议问题