twilio-node
twilio-node copied to clipboard
validateRequest is not returning true cause of query parameter changes from twilio.
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¶m3=3¶m2=2`,
to,
from,
})
what you end up receiving in your server for the ctx.href: ``https://mytestcom/test?param1=1¶m2=2¶m3=3`
this causes the validation to fail
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?
Closing this issue since their have been no updates in last 30 days. Thanks!