Remove unnecessary comments.
This commit is contained in:
		
							
								
								
									
										4
									
								
								cors.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								cors.go
									
									
									
									
									
								
							@@ -13,8 +13,6 @@ type Config struct {
 | 
				
			|||||||
	AllowAllOrigins bool
 | 
						AllowAllOrigins bool
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// AllowedOrigins is a list of origins a cross-domain request can be executed from.
 | 
						// 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
 | 
						AllowOrigins []string
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// AllowOriginFunc is a custom function to validate the origin. It take the origin
 | 
						// AllowOriginFunc is a custom function to validate the origin. It take the origin
 | 
				
			||||||
@@ -28,8 +26,6 @@ type Config struct {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	// AllowedHeaders is list of non simple headers the client is allowed to use with
 | 
						// AllowedHeaders is list of non simple headers the client is allowed to use with
 | 
				
			||||||
	// cross-domain requests.
 | 
						// cross-domain requests.
 | 
				
			||||||
	// If the special "*" value is present in the list, all headers will be allowed.
 | 
					 | 
				
			||||||
	// Default value is [] but "Origin" is always appended to the list.
 | 
					 | 
				
			||||||
	AllowHeaders []string
 | 
						AllowHeaders []string
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// AllowCredentials indicates whether the request can include user credentials like
 | 
						// AllowCredentials indicates whether the request can include user credentials like
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user