From 712cc44bd652ec3c638b2d444630c48d2a32fe53 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Wed, 17 May 2023 12:41:58 +0200 Subject: [PATCH 1/2] fix(csp): replace media.*.mdn.mozit.cloud with mdn.dev --- libs/constants/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/constants/index.js b/libs/constants/index.js index 856c4f44f9a0..bf209a9e56bd 100644 --- a/libs/constants/index.js +++ b/libs/constants/index.js @@ -130,8 +130,7 @@ export const CSP_DIRECTIVES = { "profile.stage.mozaws.net", "profile.accounts.firefox.com", - "media.prod.mdn.mozit.cloud", - "media.stage.mdn.mozit.cloud", + "mdn.dev", "interactive-examples.mdn.mozilla.net", "interactive-examples.mdn.allizom.net", From 4bbcf1fa46080ce2455643c885a48a67ede410b4 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Wed, 17 May 2023 12:42:47 +0200 Subject: [PATCH 2/2] fix(fundamental-redirects): redirect /samples/ to mdn.dev archive --- libs/fundamental-redirects/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/fundamental-redirects/index.js b/libs/fundamental-redirects/index.js index 6d9ff56d9db7..cfec562eca24 100644 --- a/libs/fundamental-redirects/index.js +++ b/libs/fundamental-redirects/index.js @@ -682,7 +682,7 @@ const SCL3_REDIRECT_PATTERNS = [ redirect( /^samples\/(?.*)$/i, ({ sample_path }) => - `https://media.prod.mdn.mozit.cloud/samples/${sample_path}`, + `https://mdn.dev/archives/media/samples/${sample_path}`, { permanent: false } ), // Bug 887428 - Misprinted URL in promo materials