From c23b52b8a1ab8eb87ee877afbe112692a8ff517e Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Sat, 31 Aug 2024 18:14:36 -0700 Subject: [PATCH] Require https:// URLs for webhook endpoints --- .../(protected)/projects/[projectId]/webhooks/page-client.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/webhooks/page-client.tsx b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/webhooks/page-client.tsx index 35f9b7e55..9cf6b7334 100644 --- a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/webhooks/page-client.tsx +++ b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/webhooks/page-client.tsx @@ -26,7 +26,7 @@ function CreateDialog(props: { const formSchema = yup.object({ makeSureAlert: yup.mixed().meta({ stackFormFieldRender: () => Make sure this is a trusted URL that you control. }), - url: urlSchema.required().label("URL (starts with https:// or http://)"), + url: urlSchema.required().label("URL (starts with https://)").test("is-https", "URL must start with https://", (value) => value.startsWith("https://")), description: yup.string().label("Description"), });