server/lib/public/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
..
db according to PHPDoc this function shall return the entity 2014-08-17 22:27:55 +02:00
http Allow AppFramework applications to specify a custom CSP header 2015-02-16 11:00:41 +01:00
utility add an interface for the timefactory class 2014-12-20 15:53:31 +01:00
apicontroller.php fix license email 2015-02-05 14:09:01 +01:00
app.php Intelligent container 2014-12-23 09:50:42 +01:00
controller.php Merge headers 2014-12-04 14:45:15 +01:00
http.php adjust license headers to new mail address 2014-05-11 17:54:08 +02:00
iapi.php first round of deprecation 2014-12-16 19:50:31 +01:00
iappcontainer.php add isAdmin and isInGroup methods for the group manager 2014-12-17 17:41:57 +01:00
middleware.php adjust license headers to new mail address 2014-05-11 17:54:08 +02:00
ocscontroller.php fix license email 2015-02-05 14:09:01 +01:00
queryexception.php Intelligent container 2014-12-23 09:50:42 +01:00