From 27b723a473efd80d5a498fa9f5933c80204c850d Mon Sep 17 00:00:00 2001 From: Benjamin Mitzkus Date: Wed, 6 Mar 2024 06:28:12 +0100 Subject: [PATCH] fixe(domain): wildcard parse bug (#106) --- cors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }