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

@@ -17,6 +17,15 @@
http://127.0.0.1:8000
```
### 2.1 CORS
当前服务已启用 CORS。
- 默认允许本地开发来源:`localhost``127.0.0.1` 的任意端口
- 当前默认允许的方法:`GET``POST``OPTIONS`
- 当前默认允许所有请求头
- 如果前端部署到其他域名,需要后端调整 `.env` 中的 CORS 配置
## 3. 健康检查
### 3.1 请求