Allow all CORS origins by default (#1270)

This commit is contained in:
Wu Clan
2026-10-10 16:41:26 +08:00
committed by GitHub
parent 66a4c77593
commit 8ea214c28e
+1 -4
View File
@@ -171,10 +171,7 @@ class Settings(BaseSettings):
WS_NO_AUTH_MARKER: str = 'internal'
# CORS
CORS_ALLOWED_ORIGINS: list[str] = [ # 末尾不带斜杠
'http://127.0.0.1',
'http://localhost:5173',
]
CORS_ALLOWED_ORIGINS: list[str] = ['*'] # 末尾不带斜杠
CORS_EXPOSE_HEADERS: list[str] = [
'X-Request-ID',
]