Merge pull request #15049 from nextcloud/do-not-allow-javascript-eval-in-the-public-share-auth-page-with-talk
Do not allow JavaScript "eval" in the public share auth page with Talk
This commit is contained in:
commit
aac22ba40f
|
@ -164,7 +164,6 @@ class ShareController extends AuthPublicShareController {
|
|||
$csp = new ContentSecurityPolicy();
|
||||
$csp->addAllowedConnectDomain('*');
|
||||
$csp->addAllowedMediaDomain('blob:');
|
||||
$csp->allowEvalScript(true);
|
||||
$response->setContentSecurityPolicy($csp);
|
||||
}
|
||||
|
||||
|
@ -185,7 +184,6 @@ class ShareController extends AuthPublicShareController {
|
|||
$csp = new ContentSecurityPolicy();
|
||||
$csp->addAllowedConnectDomain('*');
|
||||
$csp->addAllowedMediaDomain('blob:');
|
||||
$csp->allowEvalScript(true);
|
||||
$response->setContentSecurityPolicy($csp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue