93ca11f8 by Lei Cao

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

1 parent f9624578
...@@ -217,6 +217,7 @@ func Allow(opts *Options) beego.FilterFunc { ...@@ -217,6 +217,7 @@ func Allow(opts *Options) beego.FilterFunc {
217 ctx.Output.Header(key, value) 217 ctx.Output.Header(key, value)
218 } 218 }
219 ctx.Output.SetStatus(http.StatusOK) 219 ctx.Output.SetStatus(http.StatusOK)
220 ctx.WriteString("")
220 return 221 return
221 } 222 }
222 headers = opts.Header(origin) 223 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!