From f4d9e47949465b0ef5e5dd08840761b06fa6d522 Mon Sep 17 00:00:00 2001 From: duanhf2012 Date: Wed, 11 Mar 2020 12:16:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=AE=BE=E7=BD=AE=E8=B7=A8?= =?UTF-8?q?=E5=9F=9F=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sysservice/originhttp/httpserverervice.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysservice/originhttp/httpserverervice.go b/sysservice/originhttp/httpserverervice.go index 0c378f8..0de8513 100644 --- a/sysservice/originhttp/httpserverervice.go +++ b/sysservice/originhttp/httpserverervice.go @@ -195,8 +195,8 @@ func (slf *HttpServerService) OnInit() error { return nil } -func (slf *ServeHTTPRouterMux) SetAlowOrigin(w http.ResponseWriter, r *http.Request) { - slf.allowOrigin = true +func (slf *ServeHTTPRouterMux) SetAlowOrigin(allowOrigin bool) { + slf.allowOrigin = allowOrigin } func (slf *ServeHTTPRouterMux) ServeHTTP(w http.ResponseWriter, r *http.Request) {