Merge pull request #16766 from nextcloud/fix/frame-src/no-nonce

frame-src doesn't respect the nonce attribute
This commit is contained in:
Roeland Jago Douma 2019-08-19 09:22:31 +02:00 committed by GitHub
commit e6c225a3f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -494,9 +494,6 @@ class EmptyContentSecurityPolicy {
if(!empty($this->allowedFrameDomains)) {
$policy .= 'frame-src ';
if(is_string($this->useJsNonce)) {
$policy .= '\'nonce-' . base64_encode($this->useJsNonce) . '\' ';
}
$policy .= implode(' ', $this->allowedFrameDomains);
$policy .= ';';
}