1
0
forked from erp-dev/erp

feat: prod clean

This commit is contained in:
2026-05-01 22:43:22 +08:00
parent 1afcfde151
commit d7b388e935
19 changed files with 1198 additions and 134 deletions

View File

@@ -90,14 +90,7 @@ AGENT_ACCESS_KEY = env('AGENT_ACCESS_KEY', default='')
# CORS 配置
CORS_ALLOW_ALL_ORIGINS = DEBUG # 开发环境允许所有源,生产环境需要配置白名单
CORS_ALLOWED_ORIGINS = env.list('CORS_ALLOWED_ORIGINS', default=[
'http://localhost:8000',
'http://127.0.0.1:5173',
'http://127.0.0.1:5174',
'http://127.0.0.1:5179',
'https://yuwenerp.yuwen.cloud',
])
CORS_ALLOW_ALL_ORIGINS = True # 开发环境允许所有源,生产环境需要配置白名单
CORS_ALLOW_CREDENTIALS = True # 允许携带凭证(如 Cookie、认证头
# SSE 需要的特殊 CORS 配置