]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1335362 - CSP regression: MozReview requests section is broken ("Error loading...
authorDavid Lawrence <dkl@mozilla.com>
Tue, 31 Jan 2017 16:51:43 +0000 (16:51 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Tue, 31 Jan 2017 16:51:43 +0000 (16:51 +0000)
Bugzilla/CGI.pm

index 556d91441b7e80752c55d7a32c5b35e40f3b8812..f73fa6121345934fd0626e4a370aa10f03e72c7b 100644 (file)
@@ -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;
 }