Chrome extension Content Security Policy directive error

前端 未结 4 1256
悲哀的现实
悲哀的现实 2020-12-08 15:44

I\'m trying to make radio stream chrome extension but there is a problem. When I run my script in browser like normal JS+HTML+CSS it works, but when I try runing it like Chr

4条回答
  •  悲哀的现实
    2020-12-08 16:19

    I know I'm a bit late to this, but based on OP's comments to Xan's answer, another component of solving the issue would be to adjust the AJAX call that is implied.

    I was getting the same error and adjusted my API call to be:

    dataType: 'json'
    

    instead of:

    dataType: 'jsonp'
    

    (Solved the issue, granted, one will still need to remove any inline scripting.)

提交回复
热议问题