feat(csp): add worker-src directive for ALTCHA proof-of-work in admin CSP
This commit is contained in:
@@ -20,6 +20,9 @@ class AdminCspSubscriberTest extends WebTestCase
|
||||
self::assertStringContainsString("default-src 'self'", $csp);
|
||||
self::assertStringContainsString("object-src 'none'", $csp);
|
||||
self::assertStringContainsString("frame-ancestors 'none'", $csp);
|
||||
// ALTCHA solves its proof-of-work inside blob: Web Workers; without this
|
||||
// directive the login captcha errors out (worker-src falls back to script-src).
|
||||
self::assertStringContainsString("worker-src 'self' blob:", $csp);
|
||||
}
|
||||
|
||||
public function testNonAdminResponseDoesNotGetTheAdminCsp(): void
|
||||
|
||||
Reference in New Issue
Block a user