nextcloud/tests/lib/appframework
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
..
controller Allow AppFramework applications to specify a custom CSP header 2015-02-16 11:00:41 +01:00
db Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
dependencyinjection Respect `mod_unique_id` and refactor `OC_Request::getRequestId` 2015-02-09 11:53:11 +01:00
http Allow AppFramework applications to specify a custom CSP header 2015-02-16 11:00:41 +01:00
middleware Respect `mod_unique_id` and refactor `OC_Request::getRequestId` 2015-02-09 11:53:11 +01:00
routing Merge pull request #12294 from owncloud/route-postfix 2014-11-24 16:32:54 +01:00
utility another test for overriding the docblock 2015-01-29 20:35:07 +01:00
AppTest.php Intelligent container 2014-12-23 09:50:42 +01:00