Skip to content

Commit

Permalink
add check for wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
emicklei committed Dec 13, 2020
1 parent 8dd9eb8 commit 0618a4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cors_filter.go
Original file line number Diff line number Diff line change
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 0618a4c

Please sign in to comment.