all: remove term "whitelist" in comments and log messages (#23294)

This commit is contained in:
baptiste-b-pegasys
2021-07-29 17:36:15 +02:00
committed by GitHub
parent 295bc35ecf
commit 3526f69047
3 changed files with 4 additions and 4 deletions

View File

@ -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