cors cjfl

This commit is contained in:
2023-06-14 15:51:54 +09:00
parent f58db1ec09
commit a8548fffe2

View File

@ -147,5 +147,8 @@ func (h *houstonHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
reflect.ValueOf(r),
}
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Headers", "Content-Type")
method.Func.Call(args)
}