Skip to content

Commit

Permalink
fix: broken feature in dev mode (#43)
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 authored Feb 14, 2025
1 parent 3f0ff01 commit 9d91f74
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 9d91f74

Please sign in to comment.