From 2d0be6aef2bce961c8fec18fb0440dc84b84b611 Mon Sep 17 00:00:00 2001 From: Parsa Akbari Date: Thu, 21 Apr 2022 09:30:50 +0430 Subject: [PATCH] chore: update the default methods comment --- cors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cors.go b/cors.go index 135423b..f0e230a 100644 --- a/cors.go +++ b/cors.go @@ -23,7 +23,7 @@ type Config struct { AllowOriginFunc func(origin string) bool // AllowMethods is a list of methods the client is allowed to use with - // cross-domain requests. Default value is simple methods (GET and POST) + // cross-domain requests. Default value is simple methods (GET, POST, PUT, PATCH, DELETE, HEAD, and OPTIONS) AllowMethods []string // AllowHeaders is list of non simple headers the client is allowed to use with