Files
fotospiel-app/tests/Feature/ContentSecurityPolicyTest.php
Codex Agent fa630e335d
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled
Update guest PWA v2 UI and likes
2026-02-05 15:09:19 +01:00

21 lines
465 B
PHP

<?php
namespace Tests\Feature;
use Tests\TestCase;
class ContentSecurityPolicyTest extends TestCase
{
public function test_guest_routes_include_worker_src_for_blob(): void
{
config(['app.debug' => false]);
$response = $this->get('/e/test/upload');
$csp = $response->headers->get('Content-Security-Policy');
$this->assertNotNull($csp);
$this->assertStringContainsString("worker-src 'self' blob:", $csp);
}
}