Update E2E test for security headers to include worker-src validation

This commit is contained in:
Felipe Cardoso
2025-12-26 19:00:11 +01:00
parent 568aad3673
commit 4e357db25d

View File

@@ -34,6 +34,7 @@ test.describe('Security Headers', () => {
expect(csp).toContain("default-src 'self'");
expect(csp).toContain("frame-ancestors 'none'");
expect(csp).toContain("object-src 'none'");
expect(csp).toContain("worker-src 'self' blob:"); // Required for MSW
});
test('should NOT include deprecated security headers', async ({ request }) => {