{"action":"created","issue":{"url":"https://api.github.com/repos/riot/riot/issues/1076","labels_url":"https://api.github.com/repos/riot/riot/issues/1076/labels{/name}","comments_url":"https://api.github.com/repos/riot/riot/issues/1076/comments","events_url":"https://api.github.com/repos/riot/riot/issues/1076/events","html_url":"https://github.com/riot/riot/issues/1076","id":98808564,"number":1076,"title":"Cannot use Riot in Chrome App due to Content Security Policy","user":{"login":"JariInc","id":1413541,"avatar_url":"https://avatars.githubusercontent.com/u/1413541?v=3","gravatar_id":"","url":"https://api.github.com/users/JariInc","html_url":"https://github.com/JariInc","followers_url":"https://api.github.com/users/JariInc/followers","following_url":"https://api.github.com/users/JariInc/following{/other_user}","gists_url":"https://api.github.com/users/JariInc/gists{/gist_id}","starred_url":"https://api.github.com/users/JariInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JariInc/subscriptions","organizations_url":"https://api.github.com/users/JariInc/orgs","repos_url":"https://api.github.com/users/JariInc/repos","events_url":"https://api.github.com/users/JariInc/events{/privacy}","received_events_url":"https://api.github.com/users/JariInc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/riot/riot/labels/enhancement","name":"enhancement","color":"eb6420"},{"url":"https://api.github.com/repos/riot/riot/labels/feature%20request","name":"feature request","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"aMarCruz","id":6636980,"avatar_url":"https://avatars.githubusercontent.com/u/6636980?v=3","gravatar_id":"","url":"https://api.github.com/users/aMarCruz","html_url":"https://github.com/aMarCruz","followers_url":"https://api.github.com/users/aMarCruz/followers","following_url":"https://api.github.com/users/aMarCruz/following{/other_user}","gists_url":"https://api.github.com/users/aMarCruz/gists{/gist_id}","starred_url":"https://api.github.com/users/aMarCruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aMarCruz/subscriptions","organizations_url":"https://api.github.com/users/aMarCruz/orgs","repos_url":"https://api.github.com/users/aMarCruz/repos","events_url":"https://api.github.com/users/aMarCruz/events{/privacy}","received_events_url":"https://api.github.com/users/aMarCruz/received_events","type":"User","site_admin":false},"milestone":null,"comments":16,"created_at":"2015-08-03T18:15:45Z","updated_at":"2015-11-09T10:38:14Z","closed_at":null,"body":"I'm trying to make a Chrome App using Riot. When I try to print variable in a tag I get following error\r\n\r\n```\r\nUncaught 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:\".\r\n```\r\non riot.js line 269: https://github.com/riot/riot/blob/master/riot.js#L269\r\n\r\nYou can sandbox the page and Riot will work, but you'll lose most of the APIs to access outside of your app.\r\n\r\nThere is this old issue which I think is related https://github.com/riot/riot/issues/103 I tried Riot 2.0.0 but it didn't work either.\r\n\r\nHere's a minimal Chrome App that highlights the issue https://github.com/JariInc/riot-minimal-chrome-app. More about Chrome App's CSP can be found at https://developer.chrome.com/apps/contentSecurityPolicy"},"comment":{"url":"https://api.github.com/repos/riot/riot/issues/comments/155024805","html_url":"https://github.com/riot/riot/issues/1076#issuecomment-155024805","issue_url":"https://api.github.com/repos/riot/riot/issues/1076","id":155024805,"user":{"login":"tipiirai","id":169330,"avatar_url":"https://avatars.githubusercontent.com/u/169330?v=3","gravatar_id":"","url":"https://api.github.com/users/tipiirai","html_url":"https://github.com/tipiirai","followers_url":"https://api.github.com/users/tipiirai/followers","following_url":"https://api.github.com/users/tipiirai/following{/other_user}","gists_url":"https://api.github.com/users/tipiirai/gists{/gist_id}","starred_url":"https://api.github.com/users/tipiirai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tipiirai/subscriptions","organizations_url":"https://api.github.com/users/tipiirai/orgs","repos_url":"https://api.github.com/users/tipiirai/repos","events_url":"https://api.github.com/users/tipiirai/events{/privacy}","received_events_url":"https://api.github.com/users/tipiirai/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T10:38:14Z","updated_at":"2015-11-09T10:38:14Z","body":"Not sure I need to understand everything you just said :)\r\n\r\nDoes that mean that you can get rid of the Content Security Policy error?"}}