2013-08-21 36 views
3

我想在Chrome打包的應用程序中使用MathJax。 它不是在所有負載給予以下錯誤:Chrome瀏覽器中的Mathjax打包應用程序

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: "default-src 'self' chrome-extension-resource:". 

我怎樣才能使它發揮作用?

編輯

是表示此行是

var CONSTRUCTOR = function() { 
    return new Function ("return arguments.callee.Init.call(this,arguments)"); 

回答

3

評估和新功能都沒有在打包應用程序,這需要一套嚴格的內容安全策略允許在庫中的問題。有關更多詳細信息,請參閱文檔Comply with CSP

該頁面鏈接到幾個不同的解決方案,最有可能的一個是使用sandboxing

相關問題