{"action":"created","comment":{"url":"https://api.github.com/repos/barryvdh/laravel-debugbar/pulls/comments/89676772","pull_request_review_id":10219648,"id":89676772,"diff_hunk":"@@ -591,6 +591,12 @@ public function modifyResponse(Request $request, Response $response)\n             } catch (\\Exception $e) {\n                 $app['log']->error('Debugbar exception: ' . $e->getMessage());\n             }\n+        } elseif ($app['config']->get('debugbar.inject', true) && $app['config']->get('debugbar.csp-compatible', true)) {","path":"src/LaravelDebugbar.php","position":4,"original_position":4,"commit_id":"fd416ff3c820fa5defc48ac8ad1e3ed31e58ddf3","original_commit_id":"fd416ff3c820fa5defc48ac8ad1e3ed31e58ddf3","user":{"login":"Ricky-rick","id":9480194,"avatar_url":"https://avatars.githubusercontent.com/u/9480194?v=3","gravatar_id":"","url":"https://api.github.com/users/Ricky-rick","html_url":"https://github.com/Ricky-rick","followers_url":"https://api.github.com/users/Ricky-rick/followers","following_url":"https://api.github.com/users/Ricky-rick/following{/other_user}","gists_url":"https://api.github.com/users/Ricky-rick/gists{/gist_id}","starred_url":"https://api.github.com/users/Ricky-rick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ricky-rick/subscriptions","organizations_url":"https://api.github.com/users/Ricky-rick/orgs","repos_url":"https://api.github.com/users/Ricky-rick/repos","events_url":"https://api.github.com/users/Ricky-rick/events{/privacy}","received_events_url":"https://api.github.com/users/Ricky-rick/received_events","type":"User","site_admin":false},"body":"You are right. I overlooked this default value. I will change it next Monday and open new pull request. ","created_at":"2016-11-26T19:35:53Z","updated_at":"2016-11-26T19:35:54Z","html_url":"https://github.com/barryvdh/laravel-debugbar/pull/569#discussion_r89676772","pull_request_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/pulls/569","_links":{"self":{"href":"https://api.github.com/repos/barryvdh/laravel-debugbar/pulls/comments/89676772"},"html":{"href":"https://github.com/barryvdh/laravel-debugbar/pull/569#discussion_r89676772"},"pull_request":{"href":"https://api.github.com/repos/barryvdh/laravel-debugbar/pulls/569"}}},"pull_request":{"url":"https://api.github.com/repos/barryvdh/laravel-debugbar/pulls/569","id":95296914,"html_url":"https://github.com/barryvdh/laravel-debugbar/pull/569","diff_url":"https://github.com/barryvdh/laravel-debugbar/pull/569.diff","patch_url":"https://github.com/barryvdh/laravel-debugbar/pull/569.patch","issue_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/569","number":569,"state":"open","locked":false,"title":"Option to use debugbar with content-security-policy headers","user":{"login":"Ricky-rick","id":9480194,"avatar_url":"https://avatars.githubusercontent.com/u/9480194?v=3","gravatar_id":"","url":"https://api.github.com/users/Ricky-rick","html_url":"https://github.com/Ricky-rick","followers_url":"https://api.github.com/users/Ricky-rick/followers","following_url":"https://api.github.com/users/Ricky-rick/following{/other_user}","gists_url":"https://api.github.com/users/Ricky-rick/gists{/gist_id}","starred_url":"https://api.github.com/users/Ricky-rick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ricky-rick/subscriptions","organizations_url":"https://api.github.com/users/Ricky-rick/orgs","repos_url":"https://api.github.com/users/Ricky-rick/repos","events_url":"https://api.github.com/users/Ricky-rick/events{/privacy}","received_events_url":"https://api.github.com/users/Ricky-rick/received_events","type":"User","site_admin":false},"body":"The debug bar wasn’t compatible with a content security policy that doesn't allow inline-script.\r\nI made it possible to load the init script through a route and made use of the option to load the data with an ajax request. \r\n\r\nYou need to add \"img-src:'self' data:\" to your content security policy header and storage needs to be enabled.\r\n\r\nThe lines for ‘jQuery.noConflict(true); ’ are moved to the getJsInitializationCode because those needs to be at the scripts file. All other changes are new lines.\r\n","created_at":"2016-11-25T12:26:01Z","updated_at":"2016-11-26T19:35:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f32d753b8e8a6452710007d54402f6bc05855516","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/pulls/569/commits","review_comments_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/pulls/569/comments","review_comment_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/569/comments","statuses_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/statuses/fd416ff3c820fa5defc48ac8ad1e3ed31e58ddf3","head":{"label":"Ricky-rick:master","ref":"master","sha":"fd416ff3c820fa5defc48ac8ad1e3ed31e58ddf3","user":{"login":"Ricky-rick","id":9480194,"avatar_url":"https://avatars.githubusercontent.com/u/9480194?v=3","gravatar_id":"","url":"https://api.github.com/users/Ricky-rick","html_url":"https://github.com/Ricky-rick","followers_url":"https://api.github.com/users/Ricky-rick/followers","following_url":"https://api.github.com/users/Ricky-rick/following{/other_user}","gists_url":"https://api.github.com/users/Ricky-rick/gists{/gist_id}","starred_url":"https://api.github.com/users/Ricky-rick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ricky-rick/subscriptions","organizations_url":"https://api.github.com/users/Ricky-rick/orgs","repos_url":"https://api.github.com/users/Ricky-rick/repos","events_url":"https://api.github.com/users/Ricky-rick/events{/privacy}","received_events_url":"https://api.github.com/users/Ricky-rick/received_events","type":"User","site_admin":false},"repo":{"id":74753780,"name":"laravel-debugbar","full_name":"Ricky-rick/laravel-debugbar","owner":{"login":"Ricky-rick","id":9480194,"avatar_url":"https://avatars.githubusercontent.com/u/9480194?v=3","gravatar_id":"","url":"https://api.github.com/users/Ricky-rick","html_url":"https://github.com/Ricky-rick","followers_url":"https://api.github.com/users/Ricky-rick/followers","following_url":"https://api.github.com/users/Ricky-rick/following{/other_user}","gists_url":"https://api.github.com/users/Ricky-rick/gists{/gist_id}","starred_url":"https://api.github.com/users/Ricky-rick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ricky-rick/subscriptions","organizations_url":"https://api.github.com/users/Ricky-rick/orgs","repos_url":"https://api.github.com/users/Ricky-rick/repos","events_url":"https://api.github.com/users/Ricky-rick/events{/privacy}","received_events_url":"https://api.github.com/users/Ricky-rick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ricky-rick/laravel-debugbar","description":"Laravel Debugbar (Integrates PHP Debug Bar)","fork":true,"url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar","forks_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/forks","keys_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/teams","hooks_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/hooks","issue_events_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/issues/events{/number}","events_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/events","assignees_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/assignees{/user}","branches_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/branches{/branch}","tags_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/tags","blobs_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/statuses/{sha}","languages_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/languages","stargazers_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/stargazers","contributors_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/contributors","subscribers_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/subscribers","subscription_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/subscription","commits_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/contents/{+path}","compare_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/merges","archive_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/downloads","issues_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/issues{/number}","pulls_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/pulls{/number}","milestones_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/milestones{/number}","notifications_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/labels{/name}","releases_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/releases{/id}","deployments_url":"https://api.github.com/repos/Ricky-rick/laravel-debugbar/deployments","created_at":"2016-11-25T11:40:45Z","updated_at":"2016-11-25T11:40:47Z","pushed_at":"2016-11-25T12:14:41Z","git_url":"git://github.com/Ricky-rick/laravel-debugbar.git","ssh_url":"git@github.com:Ricky-rick/laravel-debugbar.git","clone_url":"https://github.com/Ricky-rick/laravel-debugbar.git","svn_url":"https://github.com/Ricky-rick/laravel-debugbar","homepage":"","size":1961,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"barryvdh:master","ref":"master","sha":"eb90bb8481024fed02ffac31c5905f7ff173914e","user":{"login":"barryvdh","id":973269,"avatar_url":"https://avatars.githubusercontent.com/u/973269?v=3","gravatar_id":"","url":"https://api.github.com/users/barryvdh","html_url":"https://github.com/barryvdh","followers_url":"https://api.github.com/users/barryvdh/followers","following_url":"https://api.github.com/users/barryvdh/following{/other_user}","gists_url":"https://api.github.com/users/barryvdh/gists{/gist_id}","starred_url":"https://api.github.com/users/barryvdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barryvdh/subscriptions","organizations_url":"https://api.github.com/users/barryvdh/orgs","repos_url":"https://api.github.com/users/barryvdh/repos","events_url":"https://api.github.com/users/barryvdh/events{/privacy}","received_events_url":"https://api.github.com/users/barryvdh/received_events","type":"User","site_admin":false},"repo":{"id":12615154,"name":"laravel-debugbar","full_name":"barryvdh/laravel-debugbar","owner":{"login":"barryvdh","id":973269,"avatar_url":"https://avatars.githubusercontent.com/u/973269?v=3","gravatar_id":"","url":"https://api.github.com/users/barryvdh","html_url":"https://github.com/barryvdh","followers_url":"https://api.github.com/users/barryvdh/followers","following_url":"https://api.github.com/users/barryvdh/following{/other_user}","gists_url":"https://api.github.com/users/barryvdh/gists{/gist_id}","starred_url":"https://api.github.com/users/barryvdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barryvdh/subscriptions","organizations_url":"https://api.github.com/users/barryvdh/orgs","repos_url":"https://api.github.com/users/barryvdh/repos","events_url":"https://api.github.com/users/barryvdh/events{/privacy}","received_events_url":"https://api.github.com/users/barryvdh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/barryvdh/laravel-debugbar","description":"Laravel Debugbar (Integrates PHP Debug Bar)","fork":false,"url":"https://api.github.com/repos/barryvdh/laravel-debugbar","forks_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/forks","keys_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/teams","hooks_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/hooks","issue_events_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/events{/number}","events_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/events","assignees_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/assignees{/user}","branches_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/branches{/branch}","tags_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/tags","blobs_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/git/refs{/sha}","trees_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/statuses/{sha}","languages_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/languages","stargazers_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/stargazers","contributors_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/contributors","subscribers_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/subscribers","subscription_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/subscription","commits_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/commits{/sha}","git_commits_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/git/commits{/sha}","comments_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/comments{/number}","issue_comment_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/comments{/number}","contents_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/contents/{+path}","compare_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/merges","archive_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/downloads","issues_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues{/number}","pulls_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/pulls{/number}","milestones_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/milestones{/number}","notifications_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/labels{/name}","releases_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/releases{/id}","deployments_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/deployments","created_at":"2013-09-05T10:26:54Z","updated_at":"2016-11-26T18:49:12Z","pushed_at":"2016-11-25T12:26:02Z","git_url":"git://github.com/barryvdh/laravel-debugbar.git","ssh_url":"git@github.com:barryvdh/laravel-debugbar.git","clone_url":"https://github.com/barryvdh/laravel-debugbar.git","svn_url":"https://github.com/barryvdh/laravel-debugbar","homepage":"","size":2496,"stargazers_count":4145,"watchers_count":4145,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":483,"mirror_url":null,"open_issues_count":179,"forks":483,"open_issues":179,"watchers":4145,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/barryvdh/laravel-debugbar/pulls/569"},"html":{"href":"https://github.com/barryvdh/laravel-debugbar/pull/569"},"issue":{"href":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/569"},"comments":{"href":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/569/comments"},"review_comments":{"href":"https://api.github.com/repos/barryvdh/laravel-debugbar/pulls/569/comments"},"review_comment":{"href":"https://api.github.com/repos/barryvdh/laravel-debugbar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/barryvdh/laravel-debugbar/pulls/569/commits"},"statuses":{"href":"https://api.github.com/repos/barryvdh/laravel-debugbar/statuses/fd416ff3c820fa5defc48ac8ad1e3ed31e58ddf3"}}}}
{"actor":{"display_login":"Ricky-rick"}}