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
It's good you narrowed this down to a working code version vs. one that's not working.
If you can edit the twilio-node code inside your node_modules directory - could you verify that twilio.validateRequest is being called with the same arguments in both cases? In the blog post demo, it's being called with a protocol and host that I'm not sure you are getting from your Express app.
Hello, we are using the
twilio.webhook()
as described in herehttps://www.twilio.com/docs/usage/tutorials/how-to-secure-your-express-app-by-validating-incoming-twilio-requests#use-twilio-express-request-validation-middleware.
The code we are running is exactly like this:
But we can see in the logs that the call results in unauthorized:
The
TWILIO_AUTH_TOKEN
is set, and it's the one from the Twilio console.Is there anything else that we are missing?
Thank you!
The text was updated successfully, but these errors were encountered: