From 8336c087f944ba0977e253a0b937fad282225c7a Mon Sep 17 00:00:00 2001 From: Ernest Micklei Date: Wed, 10 Mar 2021 10:21:13 +0100 Subject: [PATCH] add check for wildcard (#463) --- cors_filter.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cors_filter.go b/cors_filter.go index 1efeef07..d6e7c857 100644 --- a/cors_filter.go +++ b/cors_filter.go @@ -184,6 +184,9 @@ func (c CrossOriginResourceSharing) isValidAccessControlRequestHeader(header str if strings.ToLower(each) == strings.ToLower(header) { return true } + if each == "*" { + return true + } } return false }