Hubspot Oauth 2.0 Localhost


Is it possible to use localhost in redirect_uri ? If yes then what I need to do to get it working ?


Hi @Bhojraj_Bendale,

You might find the following topic helpful in this situation. For testing, you can use any secure site as a redirect (e.g. You could also create a self-signed certificate or potentially use something like ngrok. When you push it live you will need to have an encrypted web server to host your front-end app.


@Derek_Gervais but this is just a waste of time for developers: running an app in local dev environment behind SSL/HTTPS web server with self signed cert. Why wouldn’t you just allow using http://localhost redirect uri?