You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was originally posted on StackOverflow and confirmed to be an issue by a Twilio employee.
The built-in Express middleware for webhook validation doesn't seem to work properly with query strings. According to the Twilio employee's response, the validateRequest will work for this, though I did not test that.
Steps to Reproduce
Set up a webhook to a URL with a query string (I used a statusCallback URL)
Handle that request with the webhook middleware
Observe that the validation fails
Remove the query string from the URL and verify that it works without the query string.
Issue Summary
This was originally posted on StackOverflow and confirmed to be an issue by a Twilio employee.
The built-in Express middleware for webhook validation doesn't seem to work properly with query strings. According to the Twilio employee's response, the
validateRequest
will work for this, though I did not test that.Steps to Reproduce
statusCallback
URL)Code Snippet
Exception/Log
N/A but request returns a 403 due to the validation failing.
Technical details:
v4.12.0
v16.20.1
The text was updated successfully, but these errors were encountered: