From b139c335a8db96a0b2fc502b5d3f985f4613d115 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 31 Jan 2017 16:51:43 +0000 Subject: Bug 1335362 - CSP regression: MozReview requests section is broken ("Error loading review requests: unknown") --- Bugzilla/CGI.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Bugzilla') diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 556d91441..f73fa6121 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -74,6 +74,12 @@ sub SHOW_BUG_MODAL_CSP { push @{ $policy{img_src} }, $attach_base; } + # MozReview API calls + my $mozreview_url = Bugzilla->params->{mozreview_base_url}; + if ($mozreview_url) { + push @{ $policy{connect_src} }, $mozreview_url . 'api/extensions/mozreview.extension.MozReviewExtension/summary/'; + } + return %policy; } -- cgit v1.2.3-24-g4f1b