Skip to content

Commit

Permalink
Merge branch 'latest' into chinese-trad-timestamp-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
karinathomasbbc authored Oct 29, 2024
2 parents 2851b05 + 9448ea6 commit a9667d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/utilities/cspHeader/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const advertisingDirectives = {
'https://cdn.privacy-mgmt.com',
'https://*.google.com',
'https://*.amazon-adsystem.com',
'https://*.teads.tv',
],
imgSrc: [
'https://*.adsafeprotected.com',
Expand All @@ -21,6 +22,7 @@ const advertisingDirectives = {
'https://sb.scorecardresearch.com',
'https://*.amazon-adsystem.com',
'https://www.googleadservices.com',
'https://*.teads.tv',
],
scriptSrc: [
'https://*.adsafeprotected.com',
Expand Down
8 changes: 8 additions & 0 deletions src/server/utilities/cspHeader/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ describe('cspHeader', () => {
'https://cdn.privacy-mgmt.com',
'https://*.googleadservices.com',
'https://*.amazon-adsystem.com',
'https://*.teads.tv',
"'self'",
].sort(),
imgSrcExpectation: [
Expand All @@ -97,6 +98,7 @@ describe('cspHeader', () => {
'https://i.ytimg.com',
'https://*.amazon-adsystem.com',
'https://www.googleadservices.com',
'https://*.teads.tv',
"data: 'self'",
].sort(),
scriptSrcExpectation: [
Expand Down Expand Up @@ -151,6 +153,7 @@ describe('cspHeader', () => {
'https://public.flourish.studio',
'https://*.googleadservices.com',
'https://*.amazon-adsystem.com',
'https://*.teads.tv',
"'self'",
].sort(),
imgSrcExpectation: [
Expand All @@ -173,6 +176,7 @@ describe('cspHeader', () => {
'https://*.xx.fbcdn.net',
'https://*.amazon-adsystem.com',
'https://www.googleadservices.com',
'https://*.teads.tv',
"data: 'self'",
].sort(),
scriptSrcExpectation: [
Expand Down Expand Up @@ -250,6 +254,7 @@ describe('cspHeader', () => {
'https://cdn.privacy-mgmt.com',
'https://*.googleadservices.com',
'https://*.amazon-adsystem.com',
'https://*.teads.tv',
"'self'",
].sort(),
imgSrcExpectation: [
Expand All @@ -275,6 +280,7 @@ describe('cspHeader', () => {
'https://*.xx.fbcdn.net',
'https://*.amazon-adsystem.com',
'https://www.googleadservices.com',
'https://*.teads.tv',
"data: 'self'",
].sort(),
scriptSrcExpectation: [
Expand Down Expand Up @@ -329,6 +335,7 @@ describe('cspHeader', () => {
'https://public.flourish.studio',
'https://*.googleadservices.com',
'https://*.amazon-adsystem.com',
'https://*.teads.tv',
"'self'",
].sort(),
imgSrcExpectation: [
Expand All @@ -353,6 +360,7 @@ describe('cspHeader', () => {
'https://*.xx.fbcdn.net',
'https://*.amazon-adsystem.com',
'https://www.googleadservices.com',
'https://*.teads.tv',
"data: 'self'",
].sort(),
scriptSrcExpectation: [
Expand Down

0 comments on commit a9667d0

Please sign in to comment.