mirror of
https://github.com/astaxie/beego.git
synced 2025-02-16 23:07:03 +00:00
Merge branch 'master' into develop
This commit is contained in:
commit
4ce094a29a
@ -36,6 +36,7 @@
|
|||||||
package cors
|
package cors
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"net/http"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@ -215,6 +216,7 @@ func Allow(opts *Options) beego.FilterFunc {
|
|||||||
for key, value := range headers {
|
for key, value := range headers {
|
||||||
ctx.Output.Header(key, value)
|
ctx.Output.Header(key, value)
|
||||||
}
|
}
|
||||||
|
ctx.ResponseWriter.WriteHeader(http.StatusOK)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
headers = opts.Header(origin)
|
headers = opts.Header(origin)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user