Skip to content

Commit e9b7934

Browse files
mxkaskeclaude
andauthored
chore: allow shoogle.dev to embed site in iframe (#1913)
Replace X-Frame-Options with Content-Security-Policy frame-ancestors directive to allow embedding from shoogle.dev while maintaining self-origin protection. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d4d23cf commit e9b7934

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/web/next.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { withSentryConfig } from "@sentry/nextjs";
22
import type { NextConfig } from "next";
33

4-
// REMINDER: avoid Clickjacking attacks by setting the X-Frame-Options header
4+
// REMINDER: avoid Clickjacking attacks by setting the frame-ancestors directive
55
const securityHeaders = [
66
{
7-
key: "X-Frame-Options",
8-
value: "SAMEORIGIN",
7+
key: "Content-Security-Policy",
8+
value: "frame-ancestors 'self' https://shoogle.dev",
99
},
1010
];
1111

0 commit comments

Comments
 (0)