Chrome Extension “Refused to load the script because it violates the following Content Security Policy directive”

前端 未结 7 1439
孤城傲影
孤城傲影 2020-12-29 18:50

I\'m trying to create a Chrome extension, but none of my JS works. The console shows this error:

Refused to load the script \'https://ajax.googleapi

7条回答
  •  臣服心动
    2020-12-29 19:27

    According to the Chrome Extension documentation, you need to download a copy of the external resource into your package folder and load the script locally.

    Loading external scripts is not allowed.

提交回复
热议问题