'Twitter Developer App: http://127.0.0.1:3000 Invalid website URL

I'm trying to enable user authentication setting oauth 2.0 in Twitter for my test web app, and whenever I mention the website URL as localhost or 127.0.0.1. The web app is not in prod. I'm getting an error message stating that:

Invalid website URL.

Any way to fix this?

screenshot of error Invalid website URL



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source