Skip to content

Commit aa98da4

Browse files
committed
Merge branch 'main' of github.com:velt-js/sample-apps
2 parents 395eb4c + 9e3bf1d commit aa98da4

File tree

19 files changed

+998
-516
lines changed

19 files changed

+998
-516
lines changed
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
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

430
module.exports = nextConfig
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
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

430
module.exports = nextConfig
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
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

430
module.exports = nextConfig
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
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

430
module.exports = nextConfig
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
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

430
module.exports = nextConfig
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
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

430
module.exports = nextConfig
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
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

430
module.exports = nextConfig
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
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

430
module.exports = nextConfig
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
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

430
module.exports = nextConfig
Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
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

430
module.exports = nextConfig

0 commit comments

Comments
 (0)