Skip to content

Commit a702a35

Browse files
Fix Highcharts export (#1064)
* csp adjustments * Fix console error --------- Co-authored-by: Barry Pollard <barrypollard@google.com>
1 parent c3baeae commit a702a35

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

server/csp.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55
"'self'",
66
"'strict-dynamic'",
77
"cdn.httparchive.org",
8-
"use.fontawesome.com",
98
"*.googletagmanager.com",
109
"cdn.speedcurve.com",
1110
"spdcrv.global.ssl.fastly.net",
1211
"lux.speedcurve.com",
1312
"'unsafe-inline'",
14-
"reports-dev-2vzgiib6.uc.gateway.dev",
15-
"prod-gw-2vzgiib6.ue.gateway.dev",
1613
],
1714
"font-src": ["'self'"],
1815
"connect-src": [
@@ -21,13 +18,14 @@
2118
"discuss.httparchive.org",
2219
"dev.to",
2320
"cdn.rawgit.com",
21+
"export.highcharts.com",
2422
"www.webpagetest.org",
2523
"*.analytics.google.com",
2624
"*.google-analytics.com",
2725
"*.googletagmanager.com",
2826
"*.speedcurve.com",
2927
"reports-dev-2vzgiib6.uc.gateway.dev",
30-
"prod-gw-2vzgiib6.ue.gateway.dev",
28+
"reports-prod-2vzgiib6.uc.gateway.dev",
3129
],
3230
"img-src": [
3331
"'self'",

src/js/techreport/utils/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const apiBase = 'https://reports-dev-2vzgiib6.uc.gateway.dev/v1';
1+
const apiBase = 'https://reports-prod-2vzgiib6.uc.gateway.dev/v1';
22

33
export const Constants = {
44
apiBase,

src/js/timeseries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ function drawChart(options, series) {
427427
}]
428428
});
429429
};
430-
chart.zooming.mousewheel.enabled = false;
430+
chart.zooming.mouseWheel.enabled = false;
431431
window.charts = window.charts || {};
432432
window.charts[options.metric] = chart;
433433
}

0 commit comments

Comments
 (0)