Commit b1d37fe
Fix Twilio request validation URL scheme mismatch
The UseTwilioRequestValidation() middleware was validating requests using
the overridden 'https://' scheme (set by upstream middleware) while Twilio
signed the webhook with the actual configured URL scheme (e.g. 'http://'
in QA). This caused signature validation to fail for IncomingMessage and
other Twilio endpoints, resulting in 403 responses reported by Twilio as
timeouts.
Fix: set BaseUrlOverride to SystemBehaviorConfig.ResgridApiBaseUrl so the
validation URL always matches the base URL Twilio uses when signing — the
same URL registered as the webhook in the Twilio console.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 738387e commit b1d37fe
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
168 | 173 | | |
169 | 174 | | |
170 | 175 | | |
| |||
0 commit comments