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:
parent
3f0ff01105
commit
9d91f7499d
1
changelog.d/20241114_112459_regis_fix_dev_cors.md
Normal file
1
changelog.d/20241114_112459_regis_fix_dev_cors.md
Normal 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)
|
||||||
@ -4,6 +4,7 @@ SECRET_KEY = "{{ NOTES_SECRET_KEY }}"
|
|||||||
ALLOWED_HOSTS = [
|
ALLOWED_HOSTS = [
|
||||||
"notes",
|
"notes",
|
||||||
"{{ NOTES_HOST }}",
|
"{{ NOTES_HOST }}",
|
||||||
|
"{{ NOTES_HOST }}:8120",
|
||||||
]
|
]
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user