增加上传接口

This commit is contained in:
2021-07-05 02:20:10 +08:00
parent 05c8159601
commit 4ad401bafc
3 changed files with 7 additions and 2 deletions
+3
View File
@@ -412,6 +412,9 @@ func (that *Application) crossDomain(context *Context) {
if context.Config.GetString("crossDomain") != "auto" {
header.Set("Access-Control-Allow-Origin", that.Config.GetString("crossDomain"))
// 后端设置,2592000单位秒,这里是30天
header.Set("Access-Control-Max-Age", "2592000")
return
}