Skip to content

Commit 2675988

Browse files
authored
Merge pull request #62 from yutotakano/fix-cors
Fix CSP_CONNECT_SRC not including analytics endpoint
2 parents 4f44cbd + 65274a9 commit 2675988

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/backend/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@
223223
# the Markdown renderer should prevent it from being executed)
224224
"https://raw.githubusercontent.com/compsoc-edinburgh/betterinformatics/master/_sections/",
225225
"https://betterinformatics.com/courses.json",
226+
# Allow self hosted tracking
227+
"https://analytics.betterinformatics.com/api/",
226228
)
227229
CSP_IMG_SRC = (
228230
"'self'",

0 commit comments

Comments
 (0)