Skip to content

Commit c23b52b

Browse files
committed
Require https:// URLs for webhook endpoints
1 parent 6f830e7 commit c23b52b

File tree

1 file changed

+1
-1
lines changed
  • apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/webhooks

1 file changed

+1
-1
lines changed

apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/webhooks/page-client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function CreateDialog(props: {
2626

2727
const formSchema = yup.object({
2828
makeSureAlert: yup.mixed().meta({ stackFormFieldRender: () => <Alert> Make sure this is a trusted URL that you control.</Alert> }),
29-
url: urlSchema.required().label("URL (starts with https:// or http://)"),
29+
url: urlSchema.required().label("URL (starts with https://)").test("is-https", "URL must start with https://", (value) => value.startsWith("https://")),
3030
description: yup.string().label("Description"),
3131
});
3232

0 commit comments

Comments
 (0)