1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-18 11:24:14 +00:00

Return the response directly if it's a options PreflightHeader request

This commit is contained in:
Lei Cao 2014-11-21 01:35:30 +08:00
parent f96245786a
commit 93ca11f83d

View File

@ -217,6 +217,7 @@ func Allow(opts *Options) beego.FilterFunc {
ctx.Output.Header(key, value)
}
ctx.Output.SetStatus(http.StatusOK)
ctx.WriteString("")
return
}
headers = opts.Header(origin)