Facebook login on localhost - connection not secure : <p>I am adding a Facebook login to our React project, using Facebook Javascript SDK.
I followed this <a href="https://developers.facebook.com/docs/facebook-login/web" rel="noreferrer">tutorial</a>.</p>

<p>When I click the login button which I added to the page, following error is shown:</p>

<p><strong>Facebook has detected X isn't using a secure connection to transfer information.
Until X updates its security settings, you won't be able to use Facebook to log into it.</strong></p>

<p><a href="https://i.stack.imgur.com/p6s5G.png" rel="noreferrer"><img src="https://i.stack.imgur.com/p6s5G.png" alt="enter image description here"></a></p>

<p>My app is in development mode, which should mean (according Facebook docs) that localhost redirects are allowed, but it isn't so.</p>

<p>I have also tried adding localhost to Valid OAuth Redirect URIs in Facebook developers page, but it didn't solve the problem.</p>

<p>I have managed to solve the problem partially by using ngrok following this <a href="https://www.chrisjmendez.com/2018/04/16/using-ngrok-with-facebook-oauth-login/" rel="noreferrer">tutorial</a>, but it is very buggy (sometimes doesn't work) and impractical to work with, as I often have to restart whole server and everything.</p>
