Merge pull request #850 from coderzhuang/master

fix: Access-Control-Request-Headers
This commit is contained in:
John Guo
2020-08-08 09:59:45 +08:00
committed by GitHub

View File

@ -55,7 +55,7 @@ func (r *Response) DefaultCORSOptions() CORSOptions {
array := gstr.SplitAndTrim(headers, ",")
for _, header := range array {
if _, ok := defaultAllowHeadersMap[header]; !ok {
options.AllowHeaders += header + ","
options.AllowHeaders += "," + header
}
}
}