From f1c14be0f1909f3bedaa70575974c990cef5b42e Mon Sep 17 00:00:00 2001 From: jorg-vr Date: Fri, 12 May 2023 11:05:25 +0200 Subject: [PATCH 1/2] Merge pull request #4627 from dodona-edu/fix/mathjax-connection-error Allow connection to mathjax in CSP --- config/initializers/content_security_policy.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb index 1df01ff5a3..bc3e0d196d 100644 --- a/config/initializers/content_security_policy.rb +++ b/config/initializers/content_security_policy.rb @@ -16,9 +16,10 @@ 'https://*.googleapis.com', 'http://localhost:3035', 'ws://localhost:3035' else - policy.connect_src :self, Rails.configuration.tutor_url.to_s + policy.connect_src :self, Rails.configuration.tutor_url.to_s, + 'https://cdn.jsdelivr.net/npm/mathjax@3/' end - + policy.font_src :self, 'https://fonts.gstatic.com', 'https://cdn.jsdelivr.net/npm/@mdi/font@5.x/', 'https://cdn.jsdelivr.net/npm/mathjax@3/' From 3ca05785b264c255f51b72d67965c5897b5ce6ff Mon Sep 17 00:00:00 2001 From: jorg-vr Date: Fri, 12 May 2023 11:13:39 +0200 Subject: [PATCH 2/2] Bump version --- config/initializers/00_version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/00_version.rb b/config/initializers/00_version.rb index fb83576bd7..db9e8d6af9 100644 --- a/config/initializers/00_version.rb +++ b/config/initializers/00_version.rb @@ -3,7 +3,7 @@ class Application module Version MAJOR = 6 MINOR = 7 - PATCH = 3 + PATCH = 4 STRING = [MAJOR, MINOR, PATCH].compact.join('.') end