fix: broken feature in dev mode

Student notes were simply not working in dev mode because the dev server
hostname was not whitelisted in ALLOWED_HOSTS.
This commit is contained in:
Régis Behmo 2024-11-14 11:26:12 +01:00
parent dbf48674f9
commit f4b399aec2
2 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1 @@
- [Bugfix] Fix broken feature in `dev` mode, where the frontend is reporting a CORS error on loading the notes. (by @regisb)

View File

@ -4,6 +4,7 @@ SECRET_KEY = "{{ NOTES_SECRET_KEY }}"
ALLOWED_HOSTS = [ ALLOWED_HOSTS = [
"notes", "notes",
"{{ NOTES_HOST }}", "{{ NOTES_HOST }}",
"{{ NOTES_HOST }}:8120",
] ]
DATABASES = { DATABASES = {