SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 5e2d3ae8 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Fixes SCIPOST-1BB

parent 0889ad1b
No related branches found
No related tags found
No related merge requests found
...@@ -226,18 +226,18 @@ SECURE_HSTS_PRELOAD = True ...@@ -226,18 +226,18 @@ SECURE_HSTS_PRELOAD = True
SECURE_CONTENT_TYPE_NOSNIFF = True SECURE_CONTENT_TYPE_NOSNIFF = True
X_FRAME_OPTIONS = 'DENY' X_FRAME_OPTIONS = 'DENY'
REFERRER_POLICY = 'same-origin' REFERRER_POLICY = 'same-origin'
CSP_FONT_SRC = ("'self'", 'scipost.org', "'report-sample'", CSP_FONT_SRC = ("'self'", 'scipost.org', 'www.scipost.org', "'report-sample'",
'data:', 'fonts.gstatic.com', 'cdnjs.cloudflare.com', 'data:', 'fonts.gstatic.com', 'cdnjs.cloudflare.com',
'www.google.com', 'themes.googleusercontent.com') 'www.google.com', 'themes.googleusercontent.com')
CSP_FRAME_SRC = ("'self'", 'scipost.org', "'report-sample'", CSP_FRAME_SRC = ("'self'", 'scipost.org', 'www.scipost.org', "'report-sample'",
'crossmark.crossref.org', 'crossmark.crossref.org',
'www.google.com', 'player.vimeo.com', 'www.youtube-nocookie.com', 'www.google.com', 'player.vimeo.com', 'www.youtube-nocookie.com',
'www.recaptcha.net', 'www.mendeley.com', 'plaudit.pub') 'www.recaptcha.net', 'www.mendeley.com', 'plaudit.pub')
CSP_IMG_SRC = ("'self'", 'scipost.org', "'report-sample'", CSP_IMG_SRC = ("'self'", 'scipost.org', 'www.scipost.org', "'report-sample'",
'data:', 'ajax.googleapis.com', 'assets.crossref.org', 'data:', 'ajax.googleapis.com', 'assets.crossref.org',
'licensebuttons.net', 'crossmark-cdn.crossref.org', 'licensebuttons.net', 'crossmark-cdn.crossref.org',
'www.paypalobjects.com') 'www.paypalobjects.com')
CSP_SCRIPT_SRC = ("'self'", 'scipost.org', "'report-sample'", "'unsafe-inline'", CSP_SCRIPT_SRC = ("'self'", 'scipost.org', 'www.scipost.org', "'report-sample'", "'unsafe-inline'",
'ajax.googleapis.com', 'cdn.mathjax.org', 'ajax.googleapis.com', 'cdn.mathjax.org',
'cdnjs.cloudflare.com', 'cdnjs.cloudflare.com',
'crossmark-cdn.crossref.org', 'crossmark-cdn.crossref.org',
...@@ -247,7 +247,7 @@ CSP_SCRIPT_SRC = ("'self'", 'scipost.org', "'report-sample'", "'unsafe-inline'", ...@@ -247,7 +247,7 @@ CSP_SCRIPT_SRC = ("'self'", 'scipost.org', "'report-sample'", "'unsafe-inline'",
'cdn.plot.ly', 'cdn.plot.ly',
'unpkg.com/htmx.org@1.6.0' 'unpkg.com/htmx.org@1.6.0'
) )
CSP_STYLE_SRC = ("'self'", 'scipost.org', "'report-sample'", CSP_STYLE_SRC = ("'self'", 'scipost.org', 'www.scipost.org', "'report-sample'",
'crossmark-cdn.crossref.org', 'crossmark-cdn.crossref.org',
"'unsafe-inline'", 'ajax.googleapis.com', 'code.jquery.com', "'unsafe-inline'", 'ajax.googleapis.com', 'code.jquery.com',
'fonts.googleapis.com', 'fonts.googleapis.com',
......
...@@ -6,7 +6,7 @@ from .base import * ...@@ -6,7 +6,7 @@ from .base import *
# THE MAIN THING HERE # THE MAIN THING HERE
DEBUG = False DEBUG = False
ALLOWED_HOSTS = ['www.scipost.org', 'scipost.org'] ALLOWED_HOSTS = ['scipost.org', 'www.scipost.org']
# Static and media # Static and media
STATIC_URL = 'https://scipost.org/static/' STATIC_URL = 'https://scipost.org/static/'
......
...@@ -6,7 +6,7 @@ from .base import * ...@@ -6,7 +6,7 @@ from .base import *
# THE MAIN THING HERE # THE MAIN THING HERE
DEBUG = False DEBUG = False
ALLOWED_HOSTS = ['www.scipost.org', 'scipost.org', 'localhost', '142.93.224.252'] ALLOWED_HOSTS = ['scipost.org', 'www.scipost.org', 'localhost', '142.93.224.252']
# Static and media # Static and media
STATIC_URL = 'https://scipost.org/static/' STATIC_URL = 'https://scipost.org/static/'
......
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