cors cjfl
This commit is contained in:
@ -147,5 +147,8 @@ func (h *houstonHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
reflect.ValueOf(r),
|
reflect.ValueOf(r),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||||
|
w.Header().Set("Access-Control-Allow-Headers", "Content-Type")
|
||||||
|
|
||||||
method.Func.Call(args)
|
method.Func.Call(args)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user