fix: apigateway returns cors_hosts to browser (#25493)

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
Jian Qiu
2026-09-03 00:50:14 +08:00
committed by GitHub
co-authored by Qiu Jian
parent 296e862fac
commit 7d3d0edda9
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -155,6 +155,7 @@ func (h *AuthHandlers) GetRegionsResponse(ctx context.Context, w http.ResponseWr
Idps: []agapi.SIdp{},
EncryptPasswd: true,
ApiServer: options.Options.ApiServer,
CorsHosts: options.Options.CorsHosts,
}
s := auth.GetAdminSession(ctx, regions[0])
+2
View File
@@ -33,4 +33,6 @@ type SRegionsReponse struct {
EncryptPasswd bool `json:"encrypt_passwd"`
ApiServer string `json:"api_server,allowempty"`
CorsHosts []string `json:"cors_hosts,allowempty"`
}