summaryrefslogtreecommitdiffstats
path: root/Bugzilla/CGI.pm
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2017-01-31 17:51:43 +0100
committerDavid Lawrence <dkl@mozilla.com>2017-01-31 17:51:43 +0100
commitb139c335a8db96a0b2fc502b5d3f985f4613d115 (patch)
tree229b7bcada0718dbfd09dcce73e40c245af94d03 /Bugzilla/CGI.pm
parent990b21c267c223fa93aa294c7724f940bc3fe3f4 (diff)
downloadbugzilla-b139c335a8db96a0b2fc502b5d3f985f4613d115.tar.gz
bugzilla-b139c335a8db96a0b2fc502b5d3f985f4613d115.tar.xz
Bug 1335362 - CSP regression: MozReview requests section is broken ("Error loading review requests: unknown")
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r--Bugzilla/CGI.pm6
1 files changed, 6 insertions, 0 deletions
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;
}