Skip to content
Unverified Commit fdcb8edd authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Add nonce also to legacy CSP



Pages that do not use the AppFramework have its CSP inherited from `\OC_Response::addSecurityHeaders`. While those are not many anymore, there are some examples such as the "Help" page.

To stay completely backwards-compatible we should also add the nonce to the legacy CSP response.

To test that open your browser console and open the help page. Without this you will get a JS error. With this you won't.

Signed-off-by: default avatarLukas Reschke <lukas@statuscode.ch>
parent a973c1bf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment