Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion standalone/scripts/csp.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test('the shipped default CSP is scoped to the SaaS origin', () => {
assert.ok(csp.includes(DEFAULT_REMOTE_CONNECT_SRC), 'default remote sources present');
// Secure by default: no scheme-wide `https:`/`wss:` in connect-src that
// would let the webview reach an arbitrary internet host.
assert.ok(!csp.includes(' https: '), 'no bare https: source');
assert.ok(!csp.includes(' https:;') && !csp.includes(' https: '), 'no bare https: source');
assert.ok(!csp.includes(' wss:;') && !csp.includes(' wss: '), 'no bare wss: source');
// Localhost stays allowed (dev + local self-host server).
assert.ok(csp.includes('http://localhost:*') && csp.includes('ws://localhost:*'));
Expand Down
Loading