fix: broken feature in dev mode (#43)

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 2025-02-14 02:34:56 +01:00 committed by GitHub
parent 3f0ff01105
commit 9d91f7499d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 = {