fix: [CODE-760]: intenral mapping

This commit is contained in:
Abhinav Singh 2023-08-31 17:18:24 -07:00
parent 16d44f9ba4
commit e9aaf4991c

View File

@ -39,7 +39,7 @@ func checkURL(rawURL string, allowLoopback bool, allowPrivateNetwork bool) error
// basic validation for loopback / private network addresses (only sanitary to give user an early error)
// IMPORTANT: during webook execution loopback / private network addresses are blocked (handles DNS resolution)
//
if host == "localhost" {
return check.NewValidationError("localhost is not allowed.")
}