Skip to content

Commit

Permalink
add frame-ancestors rule to csp
Browse files Browse the repository at this point in the history
  • Loading branch information
maxaleks committed May 16, 2024
1 parent 0b60ada commit 163ee43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nextjs/csp/policies/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ export function app(): CspDev.DirectiveDescriptor {
'*',
],

'frame-ancestors': [
KEY_WORDS.SELF,
],

...((() => {
if (!config.features.sentry.isEnabled) {
return {};
Expand Down

0 comments on commit 163ee43

Please sign in to comment.