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.

docs(security): Add comment explaining localhost restriction in CSP

LearningCircuit3c9f9ab69f1b
diff --git a/src/local_deep_research/web/app_factory.py b/src/local_deep_research/web/app_factory.py
index 479aaf8c6c..a60223b833 100644
--- a/src/local_deep_research/web/app_factory.py
+++ b/src/local_deep_research/web/app_factory.py
@@ -335,7 +335,8 @@ def apply_middleware(app):
# Define a secure CSP with nonce support
# Removed unsafe-eval for security
# Using unsafe-hashes to allow inline event handlers (onclick, etc.) temporarily
- # connect-src restricted to specific protocols and self
+ # connect-src restricted to localhost only - this is intentional for local-first architecture
+ # This application is designed to run locally on the user's machine, not in the cloud
csp = (
"default-src 'self'; "
f"script-src 'self' 'nonce-{nonce}' 'unsafe-hashes'; "