From f07777b37b8b60cf82e85fc34de7f98f43266959 Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Mon, 20 May 2019 20:05:55 +0200
Subject: [PATCH] CSP: add Mendeley to script-src

---
 SciPost_v1/settings/base.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/SciPost_v1/settings/base.py b/SciPost_v1/settings/base.py
index a6bf5608d..61425fc0d 100644
--- a/SciPost_v1/settings/base.py
+++ b/SciPost_v1/settings/base.py
@@ -204,7 +204,8 @@ CSP_SCRIPT_SRC = ("'self'", 'scipost.org', "'report-sample'",
                   'cdnjs.cloudflare.com',
                   'crossmark-cdn.crossref.org',
                   'www.recaptcha.net',
-                  'code.jquery.com')
+                  'code.jquery.com',
+                  'static.mendeley.com')
 CSP_STYLE_SRC = ("'self'", 'scipost.org', "'report-sample'",
                  'crossmark-cdn.crossref.org',
                  "'unsafe-inline'", 'ajax.googleapis.com', 'code.jquery.com',
-- 
GitLab