Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(security): show the http(s) scheme rule on the webhook URL sample
Yudhi Armyndharisc06f314b02eb
diff --git a/docs/04-security-design.md b/docs/04-security-design.mdindex 650762379..14e7145bc 100644--- a/docs/04-security-design.md+++ b/docs/04-security-design.md@@ -242,8 +242,10 @@ export class SendTextMessageDto {// src/modules/webhook/dto/webhook.dto.tsexport class CreateWebhookDto {// require_tld:false allows hostnames without a dot (e.g. http://localhost:3000); the SSRF- // guard still decides whether the host may actually be delivered to.- @IsUrl({ require_tld: false })+ // guard still decides whether the host may actually be delivered to. The scheme is required+ // and must be http(s); 2048 is the column width.+ @IsUrl({ require_tld: false, require_protocol: true, protocols: ['http', 'https'] })+ @MaxCodePoints(2048)url: string;@IsOptional()