Skip to content

Commit 60127c9

Browse files
committed
Only unsafe inline?
1 parent 9da05fd commit 60127c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`recommended security headers templates and flattens privacy center csp header when isDev is false 1`] = `"default-src 'self'; script-src 'self' 'nonce-random-nonce-string' 'strict-dynamic' ; style-src 'self' 'nonce-random-nonce-string' 'unsafe-inline'; connect-src 'self' fides.example.com geolocation.example.com; img-src 'self' blob: data:; font-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'self'; upgrade-insecure-requests;"`;
3+
exports[`recommended security headers templates and flattens privacy center csp header when isDev is false 1`] = `"default-src 'self'; script-src 'self' 'nonce-random-nonce-string' 'strict-dynamic' ; style-src 'self' 'unsafe-inline'; connect-src 'self' fides.example.com geolocation.example.com; img-src 'self' blob: data:; font-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'self'; upgrade-insecure-requests;"`;
44

5-
exports[`recommended security headers templates and flattens privacy center csp header when isDev is true 1`] = `"default-src 'self'; script-src 'self' 'nonce-random-nonce-string' 'strict-dynamic' 'unsafe-eval'; style-src 'self' 'nonce-random-nonce-string' 'unsafe-inline'; connect-src 'self' fides.example.com geolocation.example.com; img-src 'self' blob: data:; font-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'self'; upgrade-insecure-requests;"`;
5+
exports[`recommended security headers templates and flattens privacy center csp header when isDev is true 1`] = `"default-src 'self'; script-src 'self' 'nonce-random-nonce-string' 'strict-dynamic' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; connect-src 'self' fides.example.com geolocation.example.com; img-src 'self' blob: data:; font-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'self'; upgrade-insecure-requests;"`;
66

77
exports[`recommended security headers templates and flattens the static csp header 1`] = `"default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; connect-src 'self' fides.example.com geolocation.example.com; img-src 'self' blob: data:; font-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'self'; upgrade-insecure-requests;"`;

clients/privacy-center/app/server-utils/recommendedSecurityHeaders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const privacyCenterPagesCspHeader = (args: {
5050
flattenHeader(`
5151
default-src 'self';
5252
script-src 'self' 'nonce-${args.nonce}' 'strict-dynamic' ${args.isDev ? "'unsafe-eval'" : ""};
53-
style-src 'self' 'nonce-${args.nonce}' 'unsafe-inline';
53+
style-src 'self' 'unsafe-inline';
5454
connect-src 'self' ${args.fidesApiHost} ${args.geolocationApiHost};
5555
img-src 'self' blob: data:;
5656
font-src 'self';

0 commit comments

Comments
 (0)