all: remove term "whitelist" in comments and log messages (#23294)
This commit is contained in:
committed by
GitHub
parent
295bc35ecf
commit
3526f69047
@ -96,7 +96,7 @@ func wsHandshakeValidator(allowedOrigins []string) func(*http.Request) bool {
|
||||
if _, ok := req.Header["Origin"]; !ok {
|
||||
return true
|
||||
}
|
||||
// Verify origin against whitelist.
|
||||
// Verify origin against allow list.
|
||||
origin := strings.ToLower(req.Header.Get("Origin"))
|
||||
if allowAllOrigins || originIsAllowed(origins, origin) {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user