How to make localhost secured(SSL) 【Ruby on Rails】
1 min readSep 27, 2020
I wanted to implement Facebook login for my private product. However, we have to make localhost secured when we implement Facebook login in a local environment. I’m going to introduce how to do that.
ngrok
I used ngrok(https://ngrok.com/). We can make a local product public by using this, additionally, the local product becomes secured by SSL.
How to use ngrok
- $brew cask install ngrok
- $ngrok http 3000
Attention!
ngrok’s session deletes automatically in 7 hours. We have to reconnect again every time. It is a little hassle.