mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 14:18:43 +08:00
fix: allow localhost for development
This commit is contained in:
parent
29471a752f
commit
ad8a3978c0
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user