feat: implement CORS support with configurable allowed origins

This commit is contained in:
mlogclub
2026-05-27 22:05:02 +08:00
parent 5bf4935a1f
commit 4d816182ee
6 changed files with 158 additions and 7 deletions
+5
View File
@@ -1,5 +1,10 @@
server:
port: 8083
cors:
# 浏览器跨域白名单。生产部署时改为实际前端/嵌入站点域名。
allowedOrigins:
- http://127.0.0.1:8083
- http://localhost:8083
db:
type: mysql