server/lib/public/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
..
contentsecuritypolicy.php Allow AppFramework applications to specify a custom CSP header 2015-02-16 11:00:41 +01:00
datadownloadresponse.php add Download logfile button to admin settings 2015-01-07 14:55:53 +01:00
dataresponse.php add dataresponse 2014-10-29 09:43:47 +01:00
downloadresponse.php adjust license headers to new mail address 2014-05-11 17:54:08 +02:00
jsonresponse.php fix typo in content type 2014-11-05 12:04:56 +01:00
ocsresponse.php add a controller and reponse for ocs 2015-02-05 14:02:17 +01:00
redirectresponse.php adjust license headers to new mail address 2014-05-11 17:54:08 +02:00
response.php Allow AppFramework applications to specify a custom CSP header 2015-02-16 11:00:41 +01:00
templateresponse.php Fix template rendering for 'blank' templates 2014-07-29 16:49:50 +02:00