summaryrefslogtreecommitdiffstats
path: root/Bugzilla/CGI.pm
diff options
context:
space:
mode:
authorIsrael Madueme <purelogiq@gmail.com>2018-05-01 23:32:45 +0200
committerdklawren <dklawren@users.noreply.github.com>2018-05-01 23:32:45 +0200
commit39f6b6e1f5f602f31fa7cd844809a4a7d4e579d2 (patch)
tree5960a00591ea57d6e25290ec66f8537c5f231222 /Bugzilla/CGI.pm
parent9184ec2442347f0c4f7a4c0b4e4436ea8d41e875 (diff)
downloadbugzilla-39f6b6e1f5f602f31fa7cd844809a4a7d4e579d2.tar.gz
bugzilla-39f6b6e1f5f602f31fa7cd844809a4a7d4e579d2.tar.xz
Bug 1453759 - Port OrangeFactor extension to treeherder
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r--Bugzilla/CGI.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index 9e8ba6c09..03805ad1e 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -42,6 +42,11 @@ sub DEFAULT_CSP {
img_src => [ 'self', 'https://secure.gravatar.com', 'https://www.google-analytics.com' ],
style_src => [ 'self', 'unsafe-inline' ],
object_src => [ 'none' ],
+ connect_src => [
+ 'self',
+ # This is from extensions/OrangeFactor/web/js/orange_factor.js
+ 'https://treeherder.mozilla.org/api/failurecount/',
+ ],
form_action => [
'self',
# used in template/en/default/search/search-google.html.tmpl
@@ -69,7 +74,7 @@ sub SHOW_BUG_MODAL_CSP {
connect_src => [
'self',
# This is from extensions/OrangeFactor/web/js/orange_factor.js
- 'https://brasstacks.mozilla.com/orangefactor/api/count',
+ 'https://treeherder.mozilla.org/api/failurecount/',
],
frame_src => [ 'self', ],
worker_src => [ 'none', ],