0ad75cb5 by astaxie

Merge pull request #928 from lei-cao/develop

Return the response directly if it's a options PreflightHeader request
2 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)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!