Commit 0ad75cb5 authored by astaxie's avatar astaxie

Merge pull request #928 from lei-cao/develop

Return the response directly if it's a options PreflightHeader request
parents f9624578 93ca11f8
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment