Skip to content

Commit

Permalink
fix: broken feature in dev mode
Browse files Browse the repository at this point in the history
Student notes were simply not working in dev mode because the dev server
hostname was not whitelisted in ALLOWED_HOSTS.
  • Loading branch information
regisb committed Nov 14, 2024
1 parent dbf4867 commit f4b399a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/20241114_112459_regis_fix_dev_cors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Bugfix] Fix broken feature in `dev` mode, where the frontend is reporting a CORS error on loading the notes. (by @regisb)
1 change: 1 addition & 0 deletions tutornotes/templates/notes/apps/settings/tutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
ALLOWED_HOSTS = [
"notes",
"{{ NOTES_HOST }}",
"{{ NOTES_HOST }}:8120",
]

DATABASES = {
Expand Down

0 comments on commit f4b399a

Please sign in to comment.