mirror of
https://gitee.com/johng/gf.git
synced 2024-12-02 20:28:17 +08:00
fix: Access-Control-Request-Headers
This commit is contained in:
parent
3d8451d5d0
commit
12b4fdd692
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user