For some reason, when I host my application on AWS or Heroku, the “Sign in with Twitter” button never redirects back to my webpage. This is strange, because it DOES redirect when I run the website in localhost. In other words, everything works fine when I deploy the WAR file in localhost, but the application messes up by not redirecting on AWS. To see the error, see my application: http://sample-env.vzqeyzumtm.us-west-2.elasticbeanstalk.com/
I am using Twitter4j with a Tomcat server.
Can anyone help? Thanks.