This commit is contained in:
2026-09-15 10:27:26 +07:00
parent 302d262d33
commit 2015c6fc16
7 changed files with 417 additions and 128 deletions

View File

@@ -127,6 +127,7 @@ test('security headers and no-store API caching are enabled', async () => {
assert.equal(response.status, 200);
assert.match(response.headers.get('content-security-policy') || '', /default-src 'self'/);
assert.match(response.headers.get('content-security-policy') || '', /script-src-attr 'none'/);
assert.equal(response.headers.get('x-powered-by'), null);
assert.equal(response.headers.get('cache-control'), 'no-store');
});