feat: add CORS setting for the backend application (#443)

* feat: add CORS setting for the backend application

* fix the formate issue
This commit is contained in:
Willem Jiang
2025-07-18 18:04:03 +08:00
committed by GitHub
parent f17b06f206
commit 933f3bb83a
2 changed files with 13 additions and 3 deletions

View File

@@ -7,6 +7,11 @@ NEXT_PUBLIC_API_URL="http://localhost:8000/api"
AGENT_RECURSION_LIMIT=30
# CORS settings
# Comma-separated list of allowed origins for CORS requests
# Example: ALLOWED_ORIGINS=http://localhost:3000,http://example.com
ALLOWED_ORIGINS=http://localhost:3000
# Search Engine, Supported values: tavily (recommended), duckduckgo, brave_search, arxiv
SEARCH_API=tavily
TAVILY_API_KEY=tvly-xxx