I am working on a Rails application which is in development mode and it can register with omniauth.
The host is
http://localhost:3000/
Fixed the issue myself. Added localhost:3000/auth/instagram/callback as redirect_uri and it worked just fine.
localhost:3000/auth/instagram/callback