修改路由
This commit is contained in:
parent
a4f4e774f9
commit
7565212b5c
@ -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")
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
port: 8300 # 启动端口
|
||||
port: 8298 # 启动端口
|
||||
|
||||
env: dev # 环境配置
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user