From 12389742741664c92da0c3a941bdf9932b7670bc Mon Sep 17 00:00:00 2001 From: Eason Lin Date: Wed, 28 Jun 2017 13:58:35 +0800 Subject: [PATCH] =?UTF-8?q?Change=20comments=20to=20=E2=80=98Default=20val?= =?UTF-8?q?ue=20is=20[]=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cors.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cors.go b/cors.go index c2ea94a..6284302 100644 --- a/cors.go +++ b/cors.go @@ -13,6 +13,7 @@ type Config struct { AllowAllOrigins bool // AllowedOrigins is a list of origins a cross-domain request can be executed from. + // Default value is [] AllowOrigins []string // AllowOriginFunc is a custom function to validate the origin. It take the origin