From ffc725d4a28f0ed89a775ba1a2856cc55991b4ab Mon Sep 17 00:00:00 2001 From: Julien ARBEY <34810646+jarbey@users.noreply.github.com> Date: Thu, 24 Jul 2025 11:29:57 +0200 Subject: [PATCH] Update BrevoRequestParser.php Regarding official Brevo documentation the IP range for webhook changed https://help.brevo.com/hc/en-us/articles/15127404548498-Brevo-IP-ranges-List-of-publicly-exposed-services --- .../Mailer/Bridge/Brevo/Webhook/BrevoRequestParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Mailer/Bridge/Brevo/Webhook/BrevoRequestParser.php b/src/Symfony/Component/Mailer/Bridge/Brevo/Webhook/BrevoRequestParser.php index c5f9cc712ecb6..464a0219cd923 100644 --- a/src/Symfony/Component/Mailer/Bridge/Brevo/Webhook/BrevoRequestParser.php +++ b/src/Symfony/Component/Mailer/Bridge/Brevo/Webhook/BrevoRequestParser.php @@ -35,9 +35,9 @@ protected function getRequestMatcher(): RequestMatcherInterface return new ChainRequestMatcher([ new MethodRequestMatcher('POST'), new IsJsonRequestMatcher(), - // https://developers.brevo.com/docs/how-to-use-webhooks#securing-your-webhooks + // https://help.brevo.com/hc/en-us/articles/15127404548498-Brevo-IP-ranges-List-of-publicly-exposed-services // localhost is added for testing - new IpsRequestMatcher(['185.107.232.1/24', '1.179.112.1/20', '172.246.240.1/20', '127.0.0.1']), + new IpsRequestMatcher(['1.179.112.0/20', '172.246.240.0/20', '127.0.0.1']), ]); }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: