소스 검색

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