diff options
-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; } |