mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-27 01:16:23 +02:00
allow http webhooks
This commit is contained in:
parent
1fee3757a5
commit
39282907d4
1 changed files with 1 additions and 4 deletions
|
|
@ -394,10 +394,7 @@ export function WebhookUrlSection({
|
|||
|
||||
function validate(url: string) {
|
||||
try {
|
||||
const parsedUrl = new URL(url);
|
||||
if (parsedUrl.protocol !== 'https:') {
|
||||
return { valid: false, errorMessage: 'URL must use HTTPS' };
|
||||
}
|
||||
new URL(url);
|
||||
return { valid: true };
|
||||
} catch {
|
||||
return { valid: false, errorMessage: 'Please enter a valid URL' };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue