fix: [HOTFIX] 确保生产CORS始终包含saas.xiaoxiajianji.com #93

Merged
xiaoxia merged 1 commits from fix/cors-production-domains into main 2026-06-28 21:56:51 +08:00

1 Commits

Author SHA1 Message Date
API文档维护Agent 7545a5ccdc fix: 确保生产CORS始终包含saas.xiaoxiajianji.com
Tests / test (pull_request) Failing after 1m3s
Tests / lint (pull_request) Failing after 1m2s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
之前的修复只在CORS_ORIGINS为空时才添加默认域名,
但生产环境通过环境变量设置了CORS_ORIGINS_RAW,
导致saas子域仍然不在允许列表中。

现在无论CORS_ORIGINS_RAW如何配置,都会确保包含
xiaoxiajianji.com和saas.xiaoxiajianji.com。
2026-06-28 21:56:21 +08:00