fix: Access-Control-Request-Headers

This commit is contained in:
Athos 2020-08-04 11:57:42 +08:00 committed by GitHub
parent 3d8451d5d0
commit 12b4fdd692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}
}
}