mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
fix: apigateway returns cors_hosts to browser (#25493)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -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])
|
||||
|
||||
@@ -33,4 +33,6 @@ type SRegionsReponse struct {
|
||||
EncryptPasswd bool `json:"encrypt_passwd"`
|
||||
|
||||
ApiServer string `json:"api_server,allowempty"`
|
||||
|
||||
CorsHosts []string `json:"cors_hosts,allowempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user