mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 05:00:25 +08:00
HTTP Header - CORS跨域设置增加多个选项
This commit is contained in:
@@ -49,7 +49,7 @@ func (this *UpdateCORSPopupAction) RunPost(params struct {
|
||||
Must *actions.Must
|
||||
CSRF *actionutils.CSRF
|
||||
}) {
|
||||
var config = &shared.HTTPCORSHeaderConfig{}
|
||||
var config = shared.NewHTTPCORSHeaderConfig()
|
||||
err := json.Unmarshal(params.CorsJSON, config)
|
||||
if err != nil {
|
||||
this.Fail("配置校验失败:" + err.Error())
|
||||
|
||||
Reference in New Issue
Block a user