偏差値40からのはてなブログ生活

頑張って書いてみる

chrome拡張作っている時に「unsafe-eval」で怒られたら

chrome拡張作っている時に↓みたいに怒られる時は

Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' chrome-extension-resource:".

以下を参考に
javascript - Can't use Raphael JS to draw a path in a Chrome extension popup because of security policy? - Stack Overflow - http://stackoverflow.com/questions/14855541/cant-use-raphael-js-to-draw-a-path-in-a-chrome-extension-popup-because-of-secure

manifest.jsonにポリシー追加をする事