File tree Expand file tree Collapse file tree 19 files changed +998
-516
lines changed
canvas/reactflow/reactflow-demo
codemirror/codemirror-crdt-demo Expand file tree Collapse file tree 19 files changed +998
-516
lines changed Original file line number Diff line number Diff line change 11/** @type {import('next').NextConfig } */
2- const nextConfig = { }
2+
3+ // List of domains allowed to embed this app in an iframe
4+ const allowList = [
5+ "'self'" ,
6+ "http://localhost:*" ,
7+ "https://*.vercel.app" ,
8+ "https://*.velt.dev" ,
9+ "https://*.mintlify.app" ,
10+ ] . join ( ' ' ) ;
11+
12+ const EMBED_CSP = `frame-ancestors ${ allowList } ` ;
13+
14+ const nextConfig = {
15+ async headers ( ) {
16+ return [
17+ {
18+ source : '/:path*' ,
19+ headers : [
20+ {
21+ key : 'Content-Security-Policy' ,
22+ value : EMBED_CSP ,
23+ } ,
24+ ] ,
25+ } ,
26+ ]
27+ } ,
28+ }
329
430module . exports = nextConfig
Original file line number Diff line number Diff line change 11/** @type {import('next').NextConfig } */
2- const nextConfig = { }
2+
3+ // List of domains allowed to embed this app in an iframe
4+ const allowList = [
5+ "'self'" ,
6+ "http://localhost:*" ,
7+ "https://*.vercel.app" ,
8+ "https://*.velt.dev" ,
9+ "https://*.mintlify.app" ,
10+ ] . join ( ' ' ) ;
11+
12+ const EMBED_CSP = `frame-ancestors ${ allowList } ` ;
13+
14+ const nextConfig = {
15+ async headers ( ) {
16+ return [
17+ {
18+ source : '/:path*' ,
19+ headers : [
20+ {
21+ key : 'Content-Security-Policy' ,
22+ value : EMBED_CSP ,
23+ } ,
24+ ] ,
25+ } ,
26+ ]
27+ } ,
28+ }
329
430module . exports = nextConfig
Original file line number Diff line number Diff line change 11/** @type {import('next').NextConfig } */
2- const nextConfig = { }
2+
3+ // List of domains allowed to embed this app in an iframe
4+ const allowList = [
5+ "'self'" ,
6+ "http://localhost:*" ,
7+ "https://*.vercel.app" ,
8+ "https://*.velt.dev" ,
9+ "https://*.mintlify.app" ,
10+ ] . join ( ' ' ) ;
11+
12+ const EMBED_CSP = `frame-ancestors ${ allowList } ` ;
13+
14+ const nextConfig = {
15+ async headers ( ) {
16+ return [
17+ {
18+ source : '/:path*' ,
19+ headers : [
20+ {
21+ key : 'Content-Security-Policy' ,
22+ value : EMBED_CSP ,
23+ } ,
24+ ] ,
25+ } ,
26+ ]
27+ } ,
28+ }
329
430module . exports = nextConfig
Original file line number Diff line number Diff line change 11/** @type {import('next').NextConfig } */
2- const nextConfig = { }
2+
3+ // List of domains allowed to embed this app in an iframe
4+ const allowList = [
5+ "'self'" ,
6+ "http://localhost:*" ,
7+ "https://*.vercel.app" ,
8+ "https://*.velt.dev" ,
9+ "https://*.mintlify.app" ,
10+ ] . join ( ' ' ) ;
11+
12+ const EMBED_CSP = `frame-ancestors ${ allowList } ` ;
13+
14+ const nextConfig = {
15+ async headers ( ) {
16+ return [
17+ {
18+ source : '/:path*' ,
19+ headers : [
20+ {
21+ key : 'Content-Security-Policy' ,
22+ value : EMBED_CSP ,
23+ } ,
24+ ] ,
25+ } ,
26+ ]
27+ } ,
28+ }
329
430module . exports = nextConfig
Original file line number Diff line number Diff line change 11/** @type {import('next').NextConfig } */
2- const nextConfig = { }
2+
3+ // List of domains allowed to embed this app in an iframe
4+ const allowList = [
5+ "'self'" ,
6+ "http://localhost:*" ,
7+ "https://*.vercel.app" ,
8+ "https://*.velt.dev" ,
9+ "https://*.mintlify.app" ,
10+ ] . join ( ' ' ) ;
11+
12+ const EMBED_CSP = `frame-ancestors ${ allowList } ` ;
13+
14+ const nextConfig = {
15+ async headers ( ) {
16+ return [
17+ {
18+ source : '/:path*' ,
19+ headers : [
20+ {
21+ key : 'Content-Security-Policy' ,
22+ value : EMBED_CSP ,
23+ } ,
24+ ] ,
25+ } ,
26+ ]
27+ } ,
28+ }
329
430module . exports = nextConfig
Original file line number Diff line number Diff line change 11/** @type {import('next').NextConfig } */
2- const nextConfig = { }
2+
3+ // List of domains allowed to embed this app in an iframe
4+ const allowList = [
5+ "'self'" ,
6+ "http://localhost:*" ,
7+ "https://*.vercel.app" ,
8+ "https://*.velt.dev" ,
9+ "https://*.mintlify.app" ,
10+ ] . join ( ' ' ) ;
11+
12+ const EMBED_CSP = `frame-ancestors ${ allowList } ` ;
13+
14+ const nextConfig = {
15+ async headers ( ) {
16+ return [
17+ {
18+ source : '/:path*' ,
19+ headers : [
20+ {
21+ key : 'Content-Security-Policy' ,
22+ value : EMBED_CSP ,
23+ } ,
24+ ] ,
25+ } ,
26+ ]
27+ } ,
28+ }
329
430module . exports = nextConfig
Original file line number Diff line number Diff line change 11/** @type {import('next').NextConfig } */
2- const nextConfig = { }
2+
3+ // List of domains allowed to embed this app in an iframe
4+ const allowList = [
5+ "'self'" ,
6+ "http://localhost:*" ,
7+ "https://*.vercel.app" ,
8+ "https://*.velt.dev" ,
9+ "https://*.mintlify.app" ,
10+ ] . join ( ' ' ) ;
11+
12+ const EMBED_CSP = `frame-ancestors ${ allowList } ` ;
13+
14+ const nextConfig = {
15+ async headers ( ) {
16+ return [
17+ {
18+ source : '/:path*' ,
19+ headers : [
20+ {
21+ key : 'Content-Security-Policy' ,
22+ value : EMBED_CSP ,
23+ } ,
24+ ] ,
25+ } ,
26+ ]
27+ } ,
28+ }
329
430module . exports = nextConfig
Original file line number Diff line number Diff line change 11/** @type {import('next').NextConfig } */
2- const nextConfig = { }
2+
3+ // List of domains allowed to embed this app in an iframe
4+ const allowList = [
5+ "'self'" ,
6+ "http://localhost:*" ,
7+ "https://*.vercel.app" ,
8+ "https://*.velt.dev" ,
9+ "https://*.mintlify.app" ,
10+ ] . join ( ' ' ) ;
11+
12+ const EMBED_CSP = `frame-ancestors ${ allowList } ` ;
13+
14+ const nextConfig = {
15+ async headers ( ) {
16+ return [
17+ {
18+ source : '/:path*' ,
19+ headers : [
20+ {
21+ key : 'Content-Security-Policy' ,
22+ value : EMBED_CSP ,
23+ } ,
24+ ] ,
25+ } ,
26+ ]
27+ } ,
28+ }
329
430module . exports = nextConfig
Original file line number Diff line number Diff line change 11/** @type {import('next').NextConfig } */
2- const nextConfig = { }
2+
3+ // List of domains allowed to embed this app in an iframe
4+ const allowList = [
5+ "'self'" ,
6+ "http://localhost:*" ,
7+ "https://*.vercel.app" ,
8+ "https://*.velt.dev" ,
9+ "https://*.mintlify.app" ,
10+ ] . join ( ' ' ) ;
11+
12+ const EMBED_CSP = `frame-ancestors ${ allowList } ` ;
13+
14+ const nextConfig = {
15+ async headers ( ) {
16+ return [
17+ {
18+ source : '/:path*' ,
19+ headers : [
20+ {
21+ key : 'Content-Security-Policy' ,
22+ value : EMBED_CSP ,
23+ } ,
24+ ] ,
25+ } ,
26+ ]
27+ } ,
28+ }
329
430module . exports = nextConfig
Original file line number Diff line number Diff line change 11/** @type {import('next').NextConfig } */
2- const nextConfig = { }
2+
3+ // List of domains allowed to embed this app in an iframe
4+ const allowList = [
5+ "'self'" ,
6+ "http://localhost:*" ,
7+ "https://*.vercel.app" ,
8+ "https://*.velt.dev" ,
9+ "https://*.mintlify.app" ,
10+ ] . join ( ' ' ) ;
11+
12+ const EMBED_CSP = `frame-ancestors ${ allowList } ` ;
13+
14+ const nextConfig = {
15+ async headers ( ) {
16+ return [
17+ {
18+ source : '/:path*' ,
19+ headers : [
20+ {
21+ key : 'Content-Security-Policy' ,
22+ value : EMBED_CSP ,
23+ } ,
24+ ] ,
25+ } ,
26+ ]
27+ } ,
28+ }
329
430module . exports = nextConfig
You can’t perform that action at this time.
0 commit comments