fix: cors

This commit is contained in:
2026-04-13 17:56:00 +08:00
parent 962209617f
commit ba7a014fbd
4 changed files with 45 additions and 0 deletions

View File

@@ -15,3 +15,10 @@ AMAP_MCP_AUTH_HEADER_VALUE=
# Route planning guardrails
ROUTE_MAX_PERMUTATIONS=20
# CORS
CORS_ALLOW_ORIGINS=http://localhost,http://127.0.0.1
CORS_ALLOW_ORIGIN_REGEX=https?://(localhost|127\.0\.0\.1)(:\d+)?$
CORS_ALLOW_CREDENTIALS=false
CORS_ALLOW_METHODS=GET,POST,OPTIONS
CORS_ALLOW_HEADERS=*