{"action":"opened","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-chrome-extension/issues/166","repository_url":"https://api.github.com/repos/asciidoctor/asciidoctor-chrome-extension","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-chrome-extension/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor-chrome-extension/issues/166/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor-chrome-extension/issues/166/events","html_url":"https://github.com/asciidoctor/asciidoctor-chrome-extension/issues/166","id":262693129,"number":166,"title":"CSP defined in the manifest are ignored","user":{"login":"Mogztter","id":333276,"avatar_url":"https://avatars3.githubusercontent.com/u/333276?v=4","gravatar_id":"","url":"https://api.github.com/users/Mogztter","html_url":"https://github.com/Mogztter","followers_url":"https://api.github.com/users/Mogztter/followers","following_url":"https://api.github.com/users/Mogztter/following{/other_user}","gists_url":"https://api.github.com/users/Mogztter/gists{/gist_id}","starred_url":"https://api.github.com/users/Mogztter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mogztter/subscriptions","organizations_url":"https://api.github.com/users/Mogztter/orgs","repos_url":"https://api.github.com/users/Mogztter/repos","events_url":"https://api.github.com/users/Mogztter/events{/privacy}","received_events_url":"https://api.github.com/users/Mogztter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-04T07:36:44Z","updated_at":"2017-10-04T07:36:44Z","closed_at":null,"author_association":"MEMBER","body":"I may have found the root cause. The CSP defined in the manifest does *not* override the CSP defined by the server.\r\n\r\nFor instance if I want to render an AsciiDoc file from rawgithub.com the CSP defined by GitHub will be applied.\r\n\r\nThe extension basically do the following:\r\n\r\n1. fetch text content (from a server or from the local file system),\r\n2. render the text content to HTML using Asciidoctor.js,\r\n3. replace the page content with the generated HTML\r\n\r\nAs far as I know it's not possible to relax CSP from the client for security reasons (obviously).\r\nI think we could render the content in a new page/tab but it will degrade the user experience... Any idea ?\r\n"}}
{"actor":{"display_login":"Mogztter"}}