{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/warehouse/issues/1034","repository_url":"https://api.github.com/repos/pypa/warehouse","labels_url":"https://api.github.com/repos/pypa/warehouse/issues/1034/labels{/name}","comments_url":"https://api.github.com/repos/pypa/warehouse/issues/1034/comments","events_url":"https://api.github.com/repos/pypa/warehouse/issues/1034/events","html_url":"https://github.com/pypa/warehouse/pull/1034","id":141992496,"number":1034,"title":"Relax CSP for XML pages","user":{"login":"di","id":294415,"avatar_url":"https://avatars.githubusercontent.com/u/294415?v=3","gravatar_id":"","url":"https://api.github.com/users/di","html_url":"https://github.com/di","followers_url":"https://api.github.com/users/di/followers","following_url":"https://api.github.com/users/di/following{/other_user}","gists_url":"https://api.github.com/users/di/gists{/gist_id}","starred_url":"https://api.github.com/users/di/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/di/subscriptions","organizations_url":"https://api.github.com/users/di/orgs","repos_url":"https://api.github.com/users/di/repos","events_url":"https://api.github.com/users/di/events{/privacy}","received_events_url":"https://api.github.com/users/di/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-18T22:27:42Z","updated_at":"2016-03-20T15:06:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pypa/warehouse/pulls/1034","html_url":"https://github.com/pypa/warehouse/pull/1034","diff_url":"https://github.com/pypa/warehouse/pull/1034.diff","patch_url":"https://github.com/pypa/warehouse/pull/1034.patch"},"body":"This PR relaxes the CSP on XML pages to allow browsers such as Chrome to inline styles and images.\r\n\r\nBefore:\r\n<img width=\"535\" alt=\"screen shot 2016-03-18 at 6 25 17 pm\" src=\"https://cloud.githubusercontent.com/assets/294415/13893667/f0ec9248-ed36-11e5-81f1-07196cd0effb.png\">\r\n\r\nAfter:\r\n<img width=\"582\" alt=\"screen shot 2016-03-18 at 6 24 27 pm\" src=\"https://cloud.githubusercontent.com/assets/294415/13893673/f6879b8a-ed36-11e5-82cb-4a0233578ce3.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/pypa/warehouse/issues/comments/198947705","html_url":"https://github.com/pypa/warehouse/pull/1034#issuecomment-198947705","issue_url":"https://api.github.com/repos/pypa/warehouse/issues/1034","id":198947705,"user":{"login":"di","id":294415,"avatar_url":"https://avatars.githubusercontent.com/u/294415?v=3","gravatar_id":"","url":"https://api.github.com/users/di","html_url":"https://github.com/di","followers_url":"https://api.github.com/users/di/followers","following_url":"https://api.github.com/users/di/following{/other_user}","gists_url":"https://api.github.com/users/di/gists{/gist_id}","starred_url":"https://api.github.com/users/di/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/di/subscriptions","organizations_url":"https://api.github.com/users/di/orgs","repos_url":"https://api.github.com/users/di/repos","events_url":"https://api.github.com/users/di/events{/privacy}","received_events_url":"https://api.github.com/users/di/received_events","type":"User","site_admin":false},"created_at":"2016-03-20T15:06:49Z","updated_at":"2016-03-20T15:06:49Z","body":"@dstufft I've updated the PR. Here's what it looks like without the `img-src` policy `data:`:\r\n\r\n<img width=\"590\" alt=\"screen shot 2016-03-20 at 11 03 22 am\" src=\"https://cloud.githubusercontent.com/assets/294415/13905069/67eb0d7a-ee8b-11e5-88db-0c26318c38b7.png\">\r\n"}}