Twilio - Validating Incoming Callback Request - Java
问题 When Twilio invokes a callback method to fetch the TwiML <Say> for Voice, I see that Twilio sets "x-twilio-signature" in the HTTP header. I need to verify that the actual request came from Twilio. I have a simple war file running on Tomcat and the app is built using Spring. I did something like the following: //Get the TwilioUtils object initialized TwilioUtils twilioUtils = new TwilioUtils("******myAuthToken"); //Get the URL from HttpRequest String url = httpRequest.getRequestURL().toString(