diff --git a/src/js/constants.js b/src/js/constants.js index 200f7a5..d1cb084 100644 --- a/src/js/constants.js +++ b/src/js/constants.js @@ -20,7 +20,10 @@ module.exports = { numImprovedSites: '240,000', title: 'Mozilla Observatory', urls: { - api: 'https://http-observatory.security.mozilla.org/api/v1/', + // api: 'https://http-observatory.security.mozilla.org/api/v1/', + api: 'https://prod.observatory.mdn.prod.webservices.mozgcp.net/api/v1/', + // api: 'https://stage.observatory.mdn.nonprod.webservices.mozgcp.net/api/v1/', + // api: 'http://localhost:57001/api/v1/', ssh: 'https://sshscan.rubidus.com/api/v1/', tls: 'https://tls-observatory.services.mozilla.com/api/v1/', }, diff --git a/src/js/observatories/http.js b/src/js/observatories/http.js index 9e8b245..b883777 100644 --- a/src/js/observatories/http.js +++ b/src/js/observatories/http.js @@ -214,15 +214,6 @@ const insert = async (scan, results) => { $('#tests-' + result.name + '-score-description').html(scoreDescription); }); - // note that HPKP is optional - if (includes(['hpkp-not-implemented', - 'hpkp-not-implemented-no-https', - 'hpkp-invalid-cert'], - results['public-key-pinning'].result)) { - $('#tests-public-key-pinning-score-description').text($('#tests-public-key-pinning-score-description').text() + ' (optional)'); - $('#tests-public-key-pinning-pass').empty().append(utils.getOcticon('dash')); - } - // same for Referrer Policy if ('referrer-policy' in results) { if (includes(['referrer-policy-not-implemented'], @@ -420,7 +411,7 @@ const insertHostHistory = async () => { const loadHostHistory = async () => { const target = utils.getTarget(); - var API_URL = 'https://http-observatory.security.mozilla.org/api/v1/getHostHistory?host=' + target; + var API_URL = constants.urls.api + 'getHostHistory?host=' + target; $.ajax({ method: 'GET', diff --git a/src/templates/analyze/http/test-scores.html b/src/templates/analyze/http/test-scores.html index 3848f94..0a0bba1 100644 --- a/src/templates/analyze/http/test-scores.html +++ b/src/templates/analyze/http/test-scores.html @@ -43,13 +43,6 @@