mirror of
https://github.com/Unleash/unleash.git
synced 2026-01-23 20:06:43 +01:00
fix: add cdn.getunleash.io to media-src (#11168)
Add self and cdn as allowed sources for mediaSrc in our CSP.
This commit is contained in:
parent
97d393059f
commit
bc4b6cdf1f
@ -64,6 +64,8 @@ const secureHeaders: (config: IUnleashConfig) => RequestHandler = (config) => {
|
||||
...config.additionalCspAllowedDomains.connectSrc,
|
||||
],
|
||||
mediaSrc: [
|
||||
"'self'",
|
||||
'cdn.getunleash.io',
|
||||
'*.youtube.com',
|
||||
'*.youtube-nocookie.com',
|
||||
...config.additionalCspAllowedDomains.mediaSrc,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user