allow http webhooks

This commit is contained in:
ramnique 2025-02-05 16:13:44 +05:30
parent 1fee3757a5
commit 39282907d4

View file

@ -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' };