fix: allow localhost for development

This commit is contained in:
KernelDeimos 2024-12-31 17:16:09 -05:00
parent 29471a752f
commit ad8a3978c0

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: {