From 8045ac1c9ee6024e603dea82e439c22aaa09ef58 Mon Sep 17 00:00:00 2001 From: matthewrgourd Date: Sat, 4 Apr 2026 18:09:28 +0100 Subject: [PATCH] Allow iframe embedding from devdocify.com via CSP frame-ancestors --- next.config.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/next.config.ts b/next.config.ts index d066f56..db11f26 100644 --- a/next.config.ts +++ b/next.config.ts @@ -4,6 +4,20 @@ import type { NextConfig } from "next"; const basePath = process.env.IS_DEMO === "1" ? "/demo" : ""; const nextConfig: NextConfig = { + async headers() { + return [ + { + source: "/:path*", + headers: [ + { + key: "Content-Security-Policy", + value: + "frame-ancestors 'self' https://www.devdocify.com https://devdocify.com http://localhost:*", + }, + ], + }, + ]; + }, ...(basePath ? { basePath,