From bafda233e2a491d4c094720c9ee6e508aabefc86 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Mon, 5 Aug 2024 17:11:37 +0530 Subject: [PATCH] Add standlone khoj_domain for allowed_hosts --- src/khoj/app/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/khoj/app/settings.py b/src/khoj/app/settings.py index 54882e06..7bbb8dc4 100644 --- a/src/khoj/app/settings.py +++ b/src/khoj/app/settings.py @@ -30,7 +30,7 @@ DEBUG = in_debug_mode() # All Subdomains of KHOJ_DOMAIN are trusted KHOJ_DOMAIN = os.getenv("KHOJ_DOMAIN", "khoj.dev") -ALLOWED_HOSTS = [f".{KHOJ_DOMAIN}", "localhost", "127.0.0.1", "[::1]"] +ALLOWED_HOSTS = [f".{KHOJ_DOMAIN}", "localhost", "127.0.0.1", "[::1]", f"{KHOJ_DOMAIN}"] CSRF_TRUSTED_ORIGINS = [ f"https://*.{KHOJ_DOMAIN}",