|
@@ -12,7 +12,7 @@ import (
|
12
|
12
|
func init() {
|
13
|
13
|
beego.InsertFilter("*", beego.BeforeRouter, cors.Allow(&cors.Options{
|
14
|
14
|
// AllowAllOrigins: true,
|
15
|
|
- AllowOrigins: []string{"https://xt.kuyicloud.com", "http://localhost:9528", "http://localhost:9531", "http://xt.test.shengws.com", "http://new_mobile.test.sgjyun.com", "https://xt.test.shengws.com", "http://xt.test.sgjyun.com", "https://xt.test.sgjyun.com", "http://localhost:8081", "http://localhost:8082", "https://pad.kuyicloud.com", "http://pad.kuyicloud.com", "http://pad.test.sgjyun.com", "https://pad.test.sgjyun.com", "http://admin.xt.test.sgjyun.com", "http://admin.xt.kuyicloud.com", "http://mobile.sgjyun.com", "http://mobile.kuyicloud.com"},
|
|
15
|
+ AllowOrigins: []string{"https://xt.kuyicloud.com", "http://localhost:9528", "http://localhost:9529", "http://localhost:9531", "http://xt.test.shengws.com", "http://new_mobile.test.sgjyun.com", "https://xt.test.shengws.com", "http://xt.test.sgjyun.com", "https://xt.test.sgjyun.com", "http://localhost:8081", "http://localhost:8082", "https://pad.kuyicloud.com", "http://pad.kuyicloud.com", "http://pad.test.sgjyun.com", "https://pad.test.sgjyun.com", "http://admin.xt.test.sgjyun.com", "http://admin.xt.kuyicloud.com", "http://mobile.sgjyun.com", "http://mobile.kuyicloud.com"},
|
16
|
16
|
//AllowOrigins: []string{"https://xt.kuyicloud.com", "http://localhost:9528", "http://xt.test.shengws.com","https://xt.test.shengws.com", "http://xt.test.sgjyun.com","https://xt.test.sgjyun.com", "http://localhost:8081", "http://localhost:8082", "https://pad.kuyicloud.com", "http://pad.kuyicloud.com", "http://pad.test.sgjyun.com","https://pad.test.sgjyun.com", "http://admin.xt.test.sgjyun.com", "http://admin.xt.kuyicloud.com","http://mobile.sgjyun.com","http://mobile.kuyicloud.com"},
|
17
|
17
|
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
|
18
|
18
|
AllowHeaders: []string{"Origin", "Authorization", "Access-Control-Allow-Origin", "Access-Control-Allow-Headers", "Content-Type", "X-XSRF-TOKEN", "Permission"},
|
|
@@ -50,6 +50,7 @@ func init() {
|
50
|
50
|
controllers.DistrictApiRegistRouters()
|
51
|
51
|
controllers.GobalConfigRegistRouters()
|
52
|
52
|
controllers.IntegrationConfigRegistRouters()
|
|
53
|
+ controllers.PCIndexEvaluationApiControllersRegisterRouters()
|
53
|
54
|
|
54
|
55
|
m_api.MobileAPIControllersRegisterRouters()
|
55
|
56
|
new_m_api.NewMobileAPIControllersRegisterRouters()
|