[FIX] Regression breaking KHOJ_DOMAIN's ability to be a comma-seperated list #1057
Open
3 of 14 tasks
Labels
fix
Fix something that isn't working as expected
Describe the bug
Hi, currently there's no way to have multiple URL's be trusted for both CORS & CSRF_TRUSTED_ORIGINS list (which breaks my setup and probably others' too).
Should be a quick fix - CORS is already implemented by parsing KHOJ_DOMAIN (per #662), and still works.
However, CSRF allowlist seems to not be correctly splitting the env variable on its commas (per below screenshot).
To Reproduce
Steps to reproduce the behavior:
Add a comma and a second URL to the KHOJ_DOMAINS env variable.
I'm pretty sure the offending line(s) for a potential fix are:
khoj/src/khoj/app/settings.py
Lines 31 to 42 in 8803686
Is someone with Django knowledge able to fix this? 🙏
Screenshots
Platform
If self-hosted
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: