Skip to content

Commit 8336c08

Browse files
committed
add check for wildcard (#463)
1 parent 8b5e726 commit 8336c08

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)