We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd93a50 commit 9829327Copy full SHA for 9829327
1 file changed
next.config.ts
@@ -1,7 +1,24 @@
1
import type { NextConfig } from "next";
2
3
const nextConfig: NextConfig = {
4
- // output: 'export',
+ async headers() {
5
+ return [
6
+ {
7
+ // Apply to all routes
8
+ source: '/(.*)',
9
+ headers: [
10
11
+ key: 'Content-Security-Policy',
12
+ // Explicitly allow embedding the site in iframes anywhere
13
+ // Note: If your hosting/platform also sets a CSP with a more restrictive
14
+ // frame-ancestors (e.g., 'none'), browsers will combine policies and the
15
+ // most restrictive wins. Remove or relax upstream CSP/X-Frame-Options there.
16
+ value: 'frame-ancestors *;',
17
+ },
18
+ ],
19
20
+ ];
21
22
};
23
24
export default nextConfig;
0 commit comments