Skip to content
Snippets Groups Projects
Unverified Commit 0fdc65a1 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Add nonce for Safari 12+


As far as I can tell this should work now.

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent f544c9fe
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,8 @@ class ContentSecurityPolicyNonceManager {
Request::USER_AGENT_CHROME,
// Firefox 45+
'/^Mozilla\/5\.0 \([^)]+\) Gecko\/[0-9.]+ Firefox\/(4[5-9]|[5-9][0-9])\.[0-9.]+$/',
// Safari 12+
'/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Version\/(1[2-9]|[2-9][0-9])\.[0-9]+ Safari\/[0-9.A-Z]+$/',
];
if($this->request->isUserAgent($browserWhitelist)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment