Skip to content

Commit a22b51d

Browse files
authored
add check for wildcard (#463)
1 parent 8dd9eb8 commit a22b51d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cors_filter.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ func (c CrossOriginResourceSharing) isValidAccessControlRequestHeader(header str
184184
if strings.ToLower(each) == strings.ToLower(header) {
185185
return true
186186
}
187+
if each == "*" {
188+
return true
189+
}
187190
}
188191
return false
189192
}

0 commit comments

Comments
 (0)