Skip to content

Open-source status page, incident response and uptime monitoring

chore: allow shoogle.dev to embed site in iframe (#1913)

Maximilian Kaskee9b7934ccdab
diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts
index 0f06ad446..0c00986ca 100644
--- a/apps/web/next.config.ts
+++ b/apps/web/next.config.ts
@@ -1,11 +1,11 @@
import { withSentryConfig } from "@sentry/nextjs";
import type { NextConfig } from "next";
-// REMINDER: avoid Clickjacking attacks by setting the X-Frame-Options header
+// REMINDER: avoid Clickjacking attacks by setting the frame-ancestors directive
const securityHeaders = [
{
- key: "X-Frame-Options",
- value: "SAMEORIGIN",
+ key: "Content-Security-Policy",
+ value: "frame-ancestors 'self' https://shoogle.dev",
},
];