Skip to content
Snippets Groups Projects
Commit e4001da4 authored by florimondmanca's avatar florimondmanca
Browse files
parents e09196c9 f4dd4ce9
Branches
No related tags found
No related merge requests found
......@@ -112,12 +112,10 @@ CORS_ORIGIN_REGEX_WHITELIST = (
# Allow local hosts on any port
r'^(https?://)?localhost(:\d+)?$',
r'^(https?://)?127\.0\.0\.1(:\d+)?$',
# Allow hosts such as:
# - https://oser-cs.herokuapp.com
# - https://oser-frontend-dev.herokuapp.com
# (but also https://unknown.herokuapp.com...)
# Essentially allows any frontend hosted on Heroku to send CORS requests.
r'^(https?://)?(.+\.)?herokuapp\.com$'
# Allow any app hosted on Heroku
r'^(https?://)?(.+\.)?herokuapp\.com$',
# Allow any app on *oser-cs.fr
r'^(https?://)?(.+\.)?oser-cs\.fr$',
)
X_FRAME_OPTIONS = 'DENY' # refuse to serve in an <iframe>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment