Skip to content

Commit

Permalink
fix: X-Frame-Options SAMEORIGIN
Browse files Browse the repository at this point in the history
  • Loading branch information
benguedj committed Sep 11, 2023
1 parent 2b3b897 commit b7307ca
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,18 @@ module.exports = {
},
)
return config
},
async headers() {
return [
{
source: '/(.*)?', // Matches all pages
headers: [
{
key: 'X-Frame-Options',
value: 'SAMEORIGIN',
}
]
}
]
}
}

0 comments on commit b7307ca

Please sign in to comment.