Skip to content

Commit

Permalink
ATL-1546: Add cloudflare cdn, adform, dmxleo to csp
Browse files Browse the repository at this point in the history
  • Loading branch information
nyilmaz committed Nov 27, 2023
1 parent 7628901 commit 63b85e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/prpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,12 @@ export function makeHandler(root?: string, config?: Config): (
"https://creativecdn.com",
"https://documents.colendilabs.com",
"https://challenges.cloudflare.com",
"https://cdnjs.cloudflare.com",
"app.vwo.com",
"*.visualwebsiteoptimizer.com",
"https://*.adjust.com",
"maps.googleapis.com"
"maps.googleapis.com",
"*.adform.net",
];

const styleSrcAllowedHosts = [
Expand Down Expand Up @@ -221,6 +223,7 @@ export function makeHandler(root?: string, config?: Config): (
"*.cloudfront.net",
"*.thebrighttag.com",
"*.semasio.net",
"*.dmxleo.com",
];

// json, html etc
Expand Down Expand Up @@ -260,6 +263,8 @@ export function makeHandler(root?: string, config?: Config): (
"*.storyly.io",
"*.doubleclick.net",
"maps.googleapis.com",
"*.dahi.ai",
"*.adrttt.com",
];

response.setHeader('Content-Security-Policy',
Expand Down

0 comments on commit 63b85e5

Please sign in to comment.