Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: remove strict origin format validation causing test failures

LearningCircuit6ecde5794c74
diff --git a/src/local_deep_research/security/security_headers.py b/src/local_deep_research/security/security_headers.py
index a7eb14299d..a2c49ecf44 100644
--- a/src/local_deep_research/security/security_headers.py
+++ b/src/local_deep_research/security/security_headers.py
@@ -209,19 +209,6 @@ class SecurityHeaders:
"Set SECURITY_CORS_ALLOWED_ORIGINS to a specific origin or disable credentials."
)
- # Validate origin format for non-wildcard origins
- if allowed_origins != "*":
- origins_list = [
- origin.strip() for origin in allowed_origins.split(",")
- ]
- for origin in origins_list:
- if not origin.startswith(("http://", "https://")):
- raise ValueError(
- f"CORS misconfiguration: Invalid origin format '{origin}'. "
- f"Origins must start with 'http://' or 'https://'. "
- f"Example: 'https://example.com'"
- )
-
# Log info about multi-origin + credentials configuration
if allow_credentials and "," in allowed_origins:
logger.info(