{"id":2209,"date":"2022-08-30T15:22:57","date_gmt":"2022-08-30T15:22:57","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/04\/mathjax-in-chrome-packaged-app-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:22:57","modified_gmt":"2022-08-30T15:22:57","slug":"mathjax-in-chrome-packaged-app-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/mathjax-in-chrome-packaged-app-collection-of-common-programming-errors\/","title":{"rendered":"Mathjax in Chrome Packaged App-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to use MathJax in Chrome Packaged app. It is not loading at all giving the following error :<\/p>\n<pre><code>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:\".\n<\/code><\/pre>\n<p>How can I make it work?<\/p>\n<p><strong>EDIT<\/strong><\/p>\n<p>IT is showing this line to be the problem in the library<\/p>\n<pre><code>var CONSTRUCTOR = function () {\n    return new Function (\"return arguments.callee.Init.call(this,arguments)\");\n<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2014-01-04 14:19:28. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am trying to use MathJax in Chrome Packaged app. It is not loading at all giving the following error : Uncaught EvalError: Refused to evaluate a string as JavaScript because &#8216;unsafe-eval&#8217; is not an allowed source of script in the following Content Security Policy directive: &#8220;default-src &#8216;self&#8217; chrome-extension-resource:&#8221;. How can I make it work? [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2209","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2209"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2209\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}