Skip to content

Commit

Permalink
feat(csp): allow shared assets (#10858)
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed May 13, 2024
1 parent fd8cb95 commit 4249546
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion libs/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,24 @@ export const CSP_DIRECTIVES = {
"wikipedia.org",
"upload.wikimedia.org",

// Shared assets.
"https://mdn.github.io/shared-assets/",

// GA4.
"https://*.google-analytics.com",
"https://*.googletagmanager.com",

"www.gstatic.com",
],
"manifest-src": ["'self'"],
"media-src": ["'self'", "archive.org", "videos.cdn.mozilla.net"],
"media-src": [
"'self'",
"archive.org",
"videos.cdn.mozilla.net",

// Shared assets.
"https://mdn.github.io/shared-assets/",
],
"child-src": ["'self'"],
"worker-src": ["'self'"],
};
Expand Down

0 comments on commit 4249546

Please sign in to comment.