We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8922bb commit 57ed872Copy full SHA for 57ed872
npm-packages/dashboard-self-hosted/next.config.js
@@ -37,14 +37,27 @@ const optionsForExport = {
37
unoptimized: true,
38
},
39
};
40
+
41
const optionsForBuild = {
42
output: "standalone",
43
async headers() {
44
return [
45
{
46
// Apply these headers to all routes in your application.
47
source: "/:path*",
- headers: securityHeaders,
48
+ headers: process.env.EMBEDDED_CORS_HEADERS
49
+ ? [
50
+ ...securityHeaders,
51
+ {
52
+ key: "Cross-Origin-Resource-Policy",
53
+ value: "cross-origin",
54
+ },
55
56
+ key: "Cross-Origin-Embedder-Policy",
57
+ value: "require-corp",
58
59
+ ]
60
+ : securityHeaders,
61
62
];
63
0 commit comments