diff --git a/cors.go b/cors.go index b325222..1ad4b2e 100644 --- a/cors.go +++ b/cors.go @@ -138,7 +138,7 @@ func (c Config) parseWildcardRules() [][]string { continue } if i == (len(o) - 1) { - wRules = append(wRules, []string{o[:i-1], "*"}) + wRules = append(wRules, []string{o[:i], "*"}) continue }