@vscode/test-web 0.0.28 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/out/server/app.js CHANGED
@@ -30,11 +30,13 @@ async function createApp(config) {
30
30
  return undefined;
31
31
  },
32
32
  }));
33
- // CSP: frame-ancestors
34
- app.use((ctx, next) => {
35
- ctx.set('Content-Security-Policy', `frame-ancestors 'none'`);
36
- return next();
37
- });
33
+ if (config.build.type !== 'sources') {
34
+ // CSP: frame-ancestors
35
+ app.use((ctx, next) => {
36
+ ctx.set('Content-Security-Policy', `frame-ancestors 'none'`);
37
+ return next();
38
+ });
39
+ }
38
40
  // COI
39
41
  app.use((ctx, next) => {
40
42
  const value = ctx.query['vscode-coi'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/test-web",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "scripts": {
5
5
  "install-extensions": "yarn --cwd=fs-provider && yarn --cwd=sample",
6
6
  "compile": "tsc -p ./ && yarn compile-fs-provider",