diff --git a/src/headers/XssProtection.php b/src/headers/XssProtection.php index 7c55e06..0918f00 100644 --- a/src/headers/XssProtection.php +++ b/src/headers/XssProtection.php @@ -32,7 +32,7 @@ private function getXssProtectionReportPart(): string { $report = ''; if (!empty($this->reportUri)) { - $report = ' report=' . $this->reportUri . '/r/d/xss/enforce'; + $report = ' report=' . $this->reportUri; } return $report; diff --git a/tests/headers/XssProtectionTest.php b/tests/headers/XssProtectionTest.php index 9422868..caaf63b 100644 --- a/tests/headers/XssProtectionTest.php +++ b/tests/headers/XssProtectionTest.php @@ -14,7 +14,7 @@ class XssProtectionTest extends TestCase public function setUp(): void { - $this->header = new XssProtection(true, 'example.com'); + $this->header = new XssProtection(true, 'example.com/r/d/xss/enforce'); } public function testGetValue(): void