nextcloud/tests/lib/appframework/http
Lukas Reschke b20174bdad Allow AppFramework applications to specify a custom CSP header
This change allows AppFramework applications to specify a custom CSP header for example when the default policy is too strict. Furthermore this allows us to partially migrate away from CSS and allowed eval() in our JavaScript components.

Legacy ownCloud components will still use the previous policy. Application developers can use this as following in their controllers:
```php
$response = new TemplateResponse('activity', 'list', []);
$cspHelper = new ContentSecurityPolicyHelper();
$cspHelper->addAllowedScriptDomain('www.owncloud.org');
$response->addHeader('Content-Security-Policy', $cspHelper->getPolicy());
return $response;
```

Fixes https://github.com/owncloud/core/issues/11857 which is a pre-requisite for https://github.com/owncloud/core/issues/13458 and https://github.com/owncloud/core/issues/11925
2015-02-16 11:00:41 +01:00
..
ContentSecurityPolicyTest.php Allow AppFramework applications to specify a custom CSP header 2015-02-16 11:00:41 +01:00
DataResponseTest.php Allow AppFramework applications to specify a custom CSP header 2015-02-16 11:00:41 +01:00
DispatcherTest.php Respect `mod_unique_id` and refactor `OC_Request::getRequestId` 2015-02-09 11:53:11 +01:00
DownloadResponseTest.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
HttpTest.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
JSONResponseTest.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
OCSResponseTest.php add a controller and reponse for ocs 2015-02-05 14:02:17 +01:00
RedirectResponseTest.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
RequestTest.php Respect `mod_unique_id` and refactor `OC_Request::getRequestId` 2015-02-09 11:53:11 +01:00
ResponseTest.php Allow AppFramework applications to specify a custom CSP header 2015-02-16 11:00:41 +01:00
TemplateResponseTest.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
requeststream.php Implement PUT an PATCH support 2013-10-01 20:13:13 +02:00