Skip to content

Commit

Permalink
fix(csp,fundamental-redirects): replace media.*.mdn.mozit.cloud with …
Browse files Browse the repository at this point in the history
…mdn.dev (#8873)

* fix(csp): replace media.*.mdn.mozit.cloud with mdn.dev

* fix(fundamental-redirects): redirect /samples/ to mdn.dev archive
  • Loading branch information
caugner authored May 19, 2023
1 parent f55fd8f commit 2c81bf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions libs/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Expand Down
2 changes: 1 addition & 1 deletion libs/fundamental-redirects/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ const SCL3_REDIRECT_PATTERNS = [
redirect(
/^samples\/(?<sample_path>.*)$/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
Expand Down

0 comments on commit 2c81bf5

Please sign in to comment.