diff options
author | David Lawrence <dkl@mozilla.com> | 2017-01-31 17:51:43 +0100 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2017-01-31 17:51:43 +0100 |
commit | b139c335a8db96a0b2fc502b5d3f985f4613d115 (patch) | |
tree | 229b7bcada0718dbfd09dcce73e40c245af94d03 | |
parent | 990b21c267c223fa93aa294c7724f940bc3fe3f4 (diff) | |
download | bugzilla-b139c335a8db96a0b2fc502b5d3f985f4613d115.tar.gz bugzilla-b139c335a8db96a0b2fc502b5d3f985f4613d115.tar.xz |
Bug 1335362 - CSP regression: MozReview requests section is broken ("Error loading review requests: unknown")
-rw-r--r-- | Bugzilla/CGI.pm | 6 |
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; } |