I am adding a Facebook login to our React project, using Facebook Javascript SDK. I followed this tutorial.
When I click the login button which I added to the page, following error is shown:
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.
My app is in development mode, which should mean (according Facebook docs) that localhost redirects are allowed, but it isn't so.
I have also tried adding localhost to Valid OAuth Redirect URIs in Facebook developers page, but it didn't solve the problem.
I have managed to solve the problem partially by using ngrok following this tutorial, but it is very buggy (sometimes doesn't work) and impractical to work with, as I often have to restart whole server and everything.


