Search code examples
herokuweb3jsmetamask

Heroku: cannot login to my hosted app using metamask


I want to deploy my blockchain based decentralized application on heroku.

It has been deployed but when I try to login using my metamask account the account shows as null. It works on my local machine but not on heroku.

I do not want to clutter my question with code so I am sharing a link to the code

Code that is deployed on heroku


Solution

  • Finally figured it out. I was documenting the code for github and realized that I did not whitelist the app url in the metamask settings.