tighten csp
This commit is contained in:
parent
4b8445191b
commit
5a564e2c37
@ -45,20 +45,19 @@ app.use(
|
|||||||
connectSrc: [
|
connectSrc: [
|
||||||
"'self'",
|
"'self'",
|
||||||
'https://sentry.prod.mozaws.net',
|
'https://sentry.prod.mozaws.net',
|
||||||
'https://www.google-analytics.com',
|
'https://www.google-analytics.com'
|
||||||
'https://ssl.google-analytics.com'
|
|
||||||
],
|
],
|
||||||
imgSrc: [
|
imgSrc: [
|
||||||
"'self'",
|
"'self'",
|
||||||
'https://www.google-analytics.com',
|
'https://www.google-analytics.com'
|
||||||
'https://ssl.google-analytics.com'
|
|
||||||
],
|
],
|
||||||
scriptSrc: ["'self'", 'https://ssl.google-analytics.com'],
|
scriptSrc: ["'self'"],
|
||||||
styleSrc: ["'self'", 'https://code.cdn.mozilla.net'],
|
styleSrc: ["'self'", 'https://code.cdn.mozilla.net'],
|
||||||
fontSrc: ["'self'", 'https://code.cdn.mozilla.net'],
|
fontSrc: ["'self'", 'https://code.cdn.mozilla.net'],
|
||||||
formAction: ["'none'"],
|
formAction: ["'none'"],
|
||||||
frameAncestors: ["'none'"],
|
frameAncestors: ["'none'"],
|
||||||
objectSrc: ["'none'"]
|
objectSrc: ["'none'"],
|
||||||
|
reportUri: '/__cspreport__'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user