chore: patch deps, CSP style nonces, otplib 13, and PR CI
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
87bda8dbef
commit
2ff08e5127
11 files changed
+239
-160
No files matched your search
+3
-1
@@ -13,7 +13,9 @@ describe("csp", () => {
|
||||
expect(csp).toContain("script-src");
|
||||
expect(csp).toContain("'nonce-testNonce123'");
|
||||
expect(csp).not.toMatch(/script-src[^;]*'unsafe-inline'/);
|
||||
expect(csp).toContain("style-src 'self' 'unsafe-inline'");
|
||||
expect(csp).toContain("style-src 'self' 'nonce-testNonce123'");
|
||||
expect(csp).not.toMatch(/style-src(?!-attr)[^;]*'unsafe-inline'/);
|
||||
expect(csp).toContain("style-src-attr 'unsafe-inline'");
|
||||
expect(csp).toContain("https://challenges.cloudflare.com");
|
||||
expect(csp).toContain("https://cdn.jsdelivr.net");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user