1.修改代码适配阿里云的服务器
This commit is contained in:
@@ -5,5 +5,5 @@ MONGODB_URI=mongodb://localhost:27017
|
||||
MONGODB_DB=yxd-agent-testing
|
||||
PORT=8080
|
||||
GIN_MODE=release
|
||||
SERVER_DOMAIN=https://api.example.com
|
||||
ALLOWED_ORIGINS=
|
||||
# CORS 允许的来源:对外域名 + 开发时前端地址(多个用逗号分隔)
|
||||
ALLOWED_ORIGINS=https://yuheng.yuxindazhineng.com,http://localhost:3000,http://localhost:3001
|
||||
|
||||
Reference in New Issue
Block a user