Skip to content

Commit ccb4987

Browse files
authored
Update next.config.mjs
Replace `X-FRAME-OPTIONS` with a CSP Frame Ancestors Policy!
1 parent 2519c41 commit ccb4987

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

next.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ const securityHeaders = [
8686
key: 'X-Content-Type-Options',
8787
value: 'nosniff'
8888
},
89-
{
90-
key: 'X-Frame-Options',
91-
value: 'DENY'
92-
},
9389
{
9490
key: 'X-XSS-Protection',
9591
value: '1; mode=block'
@@ -102,4 +98,8 @@ const securityHeaders = [
10298
key: 'Referrer-Policy',
10399
value: 'origin-when-cross-origin'
104100
},
101+
{
102+
key: 'Content-Security-Policy',
103+
value: "frame-ancestors 'self' https://tawk.to https://toxicdev.me;"
104+
}
105105
]

0 commit comments

Comments
 (0)