{"action":"created","issue":{"url":"https://api.github.com/repos/pi-hole/pi-hole/issues/194","labels_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/194/comments","events_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/194/events","html_url":"https://github.com/pi-hole/pi-hole/issues/194","id":127327454,"number":194,"title":"'unsafe-inline' 'unsafe-eval' directives for css and js","user":{"login":"magarto","id":7046240,"avatar_url":"https://avatars.githubusercontent.com/u/7046240?v=3","gravatar_id":"","url":"https://api.github.com/users/magarto","html_url":"https://github.com/magarto","followers_url":"https://api.github.com/users/magarto/followers","following_url":"https://api.github.com/users/magarto/following{/other_user}","gists_url":"https://api.github.com/users/magarto/gists{/gist_id}","starred_url":"https://api.github.com/users/magarto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magarto/subscriptions","organizations_url":"https://api.github.com/users/magarto/orgs","repos_url":"https://api.github.com/users/magarto/repos","events_url":"https://api.github.com/users/magarto/events{/privacy}","received_events_url":"https://api.github.com/users/magarto/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pi-hole/pi-hole/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-18T22:59:59Z","updated_at":"2016-01-29T19:52:45Z","closed_at":"2016-01-29T19:52:45Z","body":"Hi,\r\n\r\nTo improve security, 'unsafe-inline' 'unsafe-eval' directives for css and js must be disabled.\r\nAccording to the following link which I quote at the end, in Nginx there is a header which can be added to secure it. I don't know which is the right header for lighttpd but must be similar.\r\nIf we add that security directive your application shows with errors in design. A screenshot can be found here: http://imgur.com/Yw9mP8a\r\n\r\n\r\nhttps://gist.github.com/plentz/6737338\r\n\r\nwith Content Security Policy (CSP) enabled(and a browser that supports it(http://caniuse.com/#feat=contentsecuritypolicy),\r\nyou can tell the browser that it can only download content from the domains you explicitly allow\r\nhttp://www.html5rocks.com/en/tutorials/security/content-security-policy/\r\nhttps://www.owasp.org/index.php/Content_Security_Policy\r\nI need to change our application code so we can increase security by disabling 'unsafe-inline' 'unsafe-eval'\r\ndirectives for css and js(if you have inline css or js, you will need to keep it too).\r\nmore: http://www.html5rocks.com/en/tutorials/security/content-security-policy/#inline-code-considered-harmful\r\nadd_header Content-Security-Policy \"default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://ssl.google-analytics.com https://assets.zendesk.com https://connect.facebook.net; img-src 'self' https://ssl.google-analytics.com https://s-static.ak.facebook.com https://assets.zendesk.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://assets.zendesk.com; font-src 'self' https://themes.googleusercontent.com; frame-src https://assets.zendesk.com https://www.facebook.com https://s-static.ak.facebook.com https://tautt.zendesk.com; object-src 'none'\";\r\n"},"comment":{"url":"https://api.github.com/repos/pi-hole/pi-hole/issues/comments/176939164","html_url":"https://github.com/pi-hole/pi-hole/issues/194#issuecomment-176939164","issue_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/194","id":176939164,"user":{"login":"PromoFaux","id":1998970,"avatar_url":"https://avatars.githubusercontent.com/u/1998970?v=3","gravatar_id":"","url":"https://api.github.com/users/PromoFaux","html_url":"https://github.com/PromoFaux","followers_url":"https://api.github.com/users/PromoFaux/followers","following_url":"https://api.github.com/users/PromoFaux/following{/other_user}","gists_url":"https://api.github.com/users/PromoFaux/gists{/gist_id}","starred_url":"https://api.github.com/users/PromoFaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PromoFaux/subscriptions","organizations_url":"https://api.github.com/users/PromoFaux/orgs","repos_url":"https://api.github.com/users/PromoFaux/repos","events_url":"https://api.github.com/users/PromoFaux/events{/privacy}","received_events_url":"https://api.github.com/users/PromoFaux/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T19:52:45Z","updated_at":"2016-01-29T19:52:45Z","body":"Closing this issue. Reopened a [thread](https://github.com/pi-hole/AdminLTE/issues/27) in the AdminLTE repo."}}