twilio-node icon indicating copy to clipboard operation
twilio-node copied to clipboard

validateRequest is not returning true cause of query parameter changes from twilio.

Open chaker89 opened this issue 9 months ago • 1 comments

Twilio is not keeping the query parameters in the same order, which throws off the validateRequest function. for example

twilioClient.calls.create({
            url: `https://mytestcom/test?param1=1&param3=3&param2=2`,
            to,
            from,
        })

what you end up receiving in your server for the ctx.href: ``https://mytestcom/test?param1=1&param2=2&param3=3`

this causes the validation to fail

chaker89 avatar Mar 22 '25 23:03 chaker89

Hello! The URL does not have a valid host. A DNS service does not allow invalid host. The host here mytestcom is not valid. Can you please replace this with a valid host?

manisha1997 avatar May 03 '25 10:05 manisha1997

Closing this issue since their have been no updates in last 30 days. Thanks!

tiwarishubham635 avatar Jun 23 '25 06:06 tiwarishubham635