2
0

🔒 Add X-Frame-Options header in builder and lp

This commit is contained in:
Baptiste Arnaud
2023-01-18 20:56:48 +01:00
parent 49058da206
commit aa32fe782f
2 changed files with 26 additions and 0 deletions

View File

@ -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 = {

View File

@ -60,5 +60,18 @@ module.exports = withTM(
],
}
},
headers: async () => {
return [
{
source: '/(.*)?',
headers: [
{
key: 'X-Frame-Options',
value: 'DENY',
},
],
},
]
},
})
)