Skip to content

Commit

Permalink
Merge pull request #1343 from guardian/csp-style-inline
Browse files Browse the repository at this point in the history
csp header css update
  • Loading branch information
rBangay authored Jun 5, 2024
2 parents b2a7d36 + c001ed9 commit f08b685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if (featureSwitches.cspSecurityAudit) {
'report-uri /api/csp-audit-report-endpoint',
'report-to csp-endpoint',
`default-src ${cspDefaultSrcAllowList}`,
`default-style 'unsafe-inline'`, // this is unsafe but needed for now for emotion
`style-src 'unsafe-inline'`, // this is unsafe but needed for now for emotion
];
server.use(function (_: Request, res: Response, next: NextFunction) {
res.set({
Expand Down

0 comments on commit f08b685

Please sign in to comment.