Skip to content

Commit

Permalink
Merge pull request giselles-ai#234 from toyamarinyon/prevent-clickjac…
Browse files Browse the repository at this point in the history
…king

security(headers): Add X-Frame-Options header to prevent clickjacking
  • Loading branch information
toyamarinyon authored Dec 16, 2024
2 parents 52c5541 + 57580fd commit 886a8da
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ const nextConfig: NextConfig = {
},
];
},
async headers() {
return [
{
source: "/:path*",
headers: [
{
key: "X-Frame-Options",
value: "DENY",
},
],
},
];
},
};

export default withSentryConfig(nextConfig, {
Expand Down

0 comments on commit 886a8da

Please sign in to comment.