mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Require https:// URLs for webhook endpoints
This commit is contained in:
parent
6f830e7275
commit
c23b52b8a1
@ -26,7 +26,7 @@ function CreateDialog(props: {
|
||||
|
||||
const formSchema = yup.object({
|
||||
makeSureAlert: yup.mixed().meta({ stackFormFieldRender: () => <Alert> Make sure this is a trusted URL that you control.</Alert> }),
|
||||
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"),
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user