diff --git a/net/ghttp/ghttp_response_cors.go b/net/ghttp/ghttp_response_cors.go index df2bc5f6f..c4f97f1f6 100644 --- a/net/ghttp/ghttp_response_cors.go +++ b/net/ghttp/ghttp_response_cors.go @@ -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 } } }