Skip to content

Commit

Permalink
feat(web): add CSP reduce DOM attack surface
Browse files Browse the repository at this point in the history
  • Loading branch information
spicyzboss committed Jan 2, 2024
1 parent af3b3a2 commit 451f3fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/src/routes/plugin@csp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const onRequest: RequestHandler = (event) => {
`frame-src 'self' 'nonce-${nonce}'`,
`object-src 'none'`,
`base-uri 'self'`,
`require-trusted-types-for 'script'`
];

event.headers.set("Content-Security-Policy", csp.join("; "));
Expand Down

0 comments on commit 451f3fc

Please sign in to comment.