mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-24 06:05:40 +00:00
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
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user