Skip to content

Commit

Permalink
add check for wildcard (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
emicklei committed Mar 10, 2021
1 parent 8dd9eb8 commit a22b51d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cors_filter.go
Expand Up @@ -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
}
Expand Down

0 comments on commit a22b51d

Please sign in to comment.