Skip to content

Commit ad8a397

Browse files
committed
fix: allow localhost for development
1 parent 29471a7 commit ad8a397

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/src/om/proptypes/__all__.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ module.exports = {
141141
url: {
142142
from: 'string',
143143
validate (value) {
144-
return validator.isURL(value);
144+
let valid = validator.isURL(value);
145+
if ( ! valid ) {
146+
valid = validator.isURL(value, { host_whitelist: ['localhost'] });
147+
}
148+
return valid;
145149
}
146150
},
147151
reference: {

0 commit comments

Comments
 (0)