Преглед на файлове

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