瀏覽代碼

undo comments, cross support for wildcard origin

Eason Lin 9 年之前
父節點
當前提交
e641d4ab82
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      cors.go

+ 1 - 0
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.
+	// If the special "*" value is present in the list, all origins will be allowed.
 	// Default value is []
 	AllowOrigins []string