Skip to content

Commit 3294d39

Browse files
committed
webcontainer not working w/ nodejs platform
1 parent bb22b6d commit 3294d39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ var helmetPolicies = {
2929
fontSrc: ["'self'", "data:", "fonts.gstatic.com"],
3030
},
3131
},
32-
// crossOriginResourcePolicy: false,
33-
// crossOriginEmbedderPolicy: 'require-corp',
34-
// crossOriginOpenerPolicy: 'same-origin',
3532
referrerPolicy: {
3633
policy: ["origin", "unsafe-url"],
3734
},
@@ -44,6 +41,9 @@ if (process.env.HAXCMS_DISABLE_JWT_CHECKS || argv._.includes('HAXCMS_DISABLE_JWT
4441
// disable security policies that would otherwise block local development
4542
// also enables webcontainer environments which is what our playground runs
4643
helmetPolicies.contentSecurityPolicy = false;
44+
helmetPolicies.crossOriginResourcePolicy = false;
45+
helmetPolicies.crossOriginEmbedderPolicy = 'require-corp';
46+
helmetPolicies.crossOriginOpenerPolicy = 'same-origin';
4747
}
4848
// routes with all requires
4949
const { RoutesMap, OpenRoutes } = require('./lib/RoutesMap.js');

0 commit comments

Comments
 (0)