diff options
author | Simon L <szaimen@e.mail.de> | 2023-06-12 14:20:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-12 14:20:11 +0200 |
commit | 63bf207ca7a18dd50ce3aeaea42e53f4ee400fc0 (patch) | |
tree | 5c1eca4967217723afb43485d9bf0e04139ed377 /tests/lib/AppFramework/Http/ResponseTest.php | |
parent | 83faba5e613b4ac8d7fce091e5b545a7a30b1640 (diff) | |
parent | 08a3f3769581dc148c8f86c6fa0997905a6b3a10 (diff) | |
download | nextcloud-server-63bf207ca7a18dd50ce3aeaea42e53f4ee400fc0.tar.gz nextcloud-server-63bf207ca7a18dd50ce3aeaea42e53f4ee400fc0.zip |
Merge pull request #38642 from nextcloud/chore/appframework/drop-emptycontentsecuritypolicy-allowinlinescript
chore(appframework)!: Drop \OCP\AppFramework\Http\EmptyContentSecurityPolicy::allowInlineScript
Diffstat (limited to 'tests/lib/AppFramework/Http/ResponseTest.php')
-rw-r--r-- | tests/lib/AppFramework/Http/ResponseTest.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/lib/AppFramework/Http/ResponseTest.php b/tests/lib/AppFramework/Http/ResponseTest.php index 6473a5bf55f..dac4606124a 100644 --- a/tests/lib/AppFramework/Http/ResponseTest.php +++ b/tests/lib/AppFramework/Http/ResponseTest.php @@ -67,7 +67,6 @@ class ResponseTest extends \Test\TestCase { 'Content-Security-Policy' => "default-src 'none';base-uri 'none';manifest-src 'self';script-src 'self' 'unsafe-inline';style-src 'self' 'unsafe-inline';img-src 'self';font-src 'self' data:;connect-src 'self';media-src 'self'", ]; $policy = new Http\ContentSecurityPolicy(); - $policy->allowInlineScript(true); $this->childResponse->setContentSecurityPolicy($policy); $headers = $this->childResponse->getHeaders(); @@ -77,7 +76,6 @@ class ResponseTest extends \Test\TestCase { public function testGetCsp() { $policy = new Http\ContentSecurityPolicy(); - $policy->allowInlineScript(true); $this->childResponse->setContentSecurityPolicy($policy); $this->assertEquals($policy, $this->childResponse->getContentSecurityPolicy()); |