fix: allow localhost for development
Docker Image CI / build-and-push-image (push) Waiting to run
Maintain Release Merge PR / update-release-pr (push) Waiting to run
release-please / release-please (push) Waiting to run
test / test (18.x) (push) Waiting to run
test / test (20.x) (push) Waiting to run
test / test (22.x) (push) Waiting to run

This commit is contained in:
KernelDeimos
2024-12-31 17:16:09 -05:00
parent 29471a752f
commit ad8a3978c0
+5 -1
View File
@@ -141,7 +141,11 @@ module.exports = {
url: {
from: 'string',
validate (value) {
return validator.isURL(value);
let valid = validator.isURL(value);
if ( ! valid ) {
valid = validator.isURL(value, { host_whitelist: ['localhost'] });
}
return valid;
}
},
reference: {