🔒 Add X-Frame-Options header in builder and lp
This commit is contained in:
@ -14,6 +14,19 @@ const nextConfig = withTM({
|
||||
experimental: {
|
||||
outputFileTracingRoot: path.join(__dirname, '../../'),
|
||||
},
|
||||
headers: async () => {
|
||||
return [
|
||||
{
|
||||
source: '/(.*)?',
|
||||
headers: [
|
||||
{
|
||||
key: 'X-Frame-Options',
|
||||
value: 'DENY',
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
},
|
||||
})
|
||||
|
||||
const sentryWebpackPluginOptions = {
|
||||
|
@ -60,5 +60,18 @@ module.exports = withTM(
|
||||
],
|
||||
}
|
||||
},
|
||||
headers: async () => {
|
||||
return [
|
||||
{
|
||||
source: '/(.*)?',
|
||||
headers: [
|
||||
{
|
||||
key: 'X-Frame-Options',
|
||||
value: 'DENY',
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
},
|
||||
})
|
||||
)
|
||||
|
Reference in New Issue
Block a user