Skip to content

Commit

Permalink
add sign-in xframe options
Browse files Browse the repository at this point in the history
  • Loading branch information
AykutSarac committed Oct 7, 2023
1 parent 482de39 commit 6b81875
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 @@ -13,6 +13,19 @@ const config = {
compiler: {
styledComponents: true,
},
async headers() {
return [
{
source: "/sign-in",
headers: [
{
key: "X-Frame-Options",
value: "SAMEORIGIN",
},
],
},
];
},
};

const bundleAnalyzerConfig = withBundleAnalyzer(config);
Expand Down

0 comments on commit 6b81875

Please sign in to comment.