Skip to content

Commit 60d40de

Browse files
GMishxdeo002
authored andcommitted
fix(scp): Tighten CSP against object-src
Add more strict `object-src 'none';` for old browsers. Signed-off-by: Gaurav Mishra <mishra.gaurav@siemens.com>
1 parent 0afaa85 commit 60d40de

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

next.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ const csp = `
2020
img-src 'self' data: https://secure.gravatar.com https://www.gravatar.com;
2121
font-src 'self' data:;
2222
connect-src 'self' https://www.gravatar.com${isDev ? ' http://localhost:*' : ''};
23+
object-src 'none';
2324
frame-ancestors 'self';
25+
require-trusted-types-for 'script';
2426
`
2527
.replace(/\s{2,}/g, ' ')
2628
.trim()

0 commit comments

Comments
 (0)