在Chrome应用中使用下划线模板

时间:2014-03-20 09:01:25

标签: html5 google-chrome google-chrome-extension underscore.js underscore.js-templating

我正在构建一个Chrome应用并收到不安全的eval错误。 我知道现在允许在Chrome扩展程序上使用eval,但是当我添加到清单时

  "content_security_policy": "default-src  'unsafe-eval'; script-src   'unsafe-eval' 'unsafe-inline'; style-src 'unsafe-inline'"

我在扩展标签

中收到错误消息
'content_security_policy' is only allowed for extensions and legacy packaged apps, but this is a packaged app.

是否有办法在Chrome应用中允许不安全的评估

1 个答案:

答案 0 :(得分:0)

无法在Chrome应用中覆盖严格的CSP。 Read the documentation