修改路由

This commit is contained in:
wucongxing 2023-09-04 15:25:53 +08:00
parent a4f4e774f9
commit 7565212b5c
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ func Cors() gin.HandlerFunc {
if origin != "" {
c.Header("Access-Control-Allow-Origin", origin)
c.Header("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE, UPDATE")
c.Header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Authorization")
c.Header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, app_id,sign")
c.Header("Access-Control-Expose-Headers", "Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Cache-Control, Content-Language, Content-Type")
c.Header("Access-Control-Allow-Credentials", "false")
c.Set("content-type", "application/json")

View File

@ -1,4 +1,4 @@
port: 8300 # 启动端口
port: 8298 # 启动端口
env: dev # 环境配置