Skip to content

Commit 2c81bf5

Browse files
authored
fix(csp,fundamental-redirects): replace media.*.mdn.mozit.cloud with mdn.dev (#8873)
* fix(csp): replace media.*.mdn.mozit.cloud with mdn.dev * fix(fundamental-redirects): redirect /samples/ to mdn.dev archive
1 parent f55fd8f commit 2c81bf5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: libs/constants/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ export const CSP_DIRECTIVES = {
130130
"profile.stage.mozaws.net",
131131
"profile.accounts.firefox.com",
132132

133-
"media.prod.mdn.mozit.cloud",
134-
"media.stage.mdn.mozit.cloud",
133+
"mdn.dev",
135134
"interactive-examples.mdn.mozilla.net",
136135
"interactive-examples.mdn.allizom.net",
137136

Diff for: libs/fundamental-redirects/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ const SCL3_REDIRECT_PATTERNS = [
682682
redirect(
683683
/^samples\/(?<sample_path>.*)$/i,
684684
({ sample_path }) =>
685-
`https://media.prod.mdn.mozit.cloud/samples/${sample_path}`,
685+
`https://mdn.dev/archives/media/samples/${sample_path}`,
686686
{ permanent: false }
687687
),
688688
// Bug 887428 - Misprinted URL in promo materials

0 commit comments

Comments
 (0)