We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe8dcd6 commit 85e52dbCopy full SHA for 85e52db
tests/system/HTTP/ContentSecurityPolicyTest.php
@@ -379,6 +379,19 @@ public function testReportURI(): void
379
$this->assertStringContainsString('report-uri http://example.com/csptracker;', $result);
380
}
381
382
+ #[PreserveGlobalState(false)]
383
+ #[RunInSeparateProcess]
384
+ public function testRemoveReportURI(): void
385
+ {
386
+ $this->prepare();
387
+ $this->csp->reportOnly(false);
388
+ $this->csp->setReportURI('');
389
+ $this->work();
390
+
391
+ $result = $this->getHeaderEmitted('Content-Security-Policy');
392
+ $this->assertStringNotContainsString('report-uri ', $result);
393
+ }
394
395
#[PreserveGlobalState(false)]
396
#[RunInSeparateProcess]
397
public function testSandboxFlags(): void
0 commit comments