This commit is contained in:
lifeiyi
2020-03-11 16:35:45 +08:00

View File

@@ -195,8 +195,8 @@ func (slf *HttpServerService) OnInit() error {
return nil return nil
} }
func (slf *ServeHTTPRouterMux) SetAlowOrigin(w http.ResponseWriter, r *http.Request) { func (slf *ServeHTTPRouterMux) SetAlowOrigin(allowOrigin bool) {
slf.allowOrigin = true slf.allowOrigin = allowOrigin
} }
func (slf *ServeHTTPRouterMux) ServeHTTP(w http.ResponseWriter, r *http.Request) { func (slf *ServeHTTPRouterMux) ServeHTTP(w http.ResponseWriter, r *http.Request) {