facebook login on localhost without https

后端 未结 4 1209
挽巷
挽巷 2021-02-07 03:39

I know there are about a hundred questions of this on SO, but none of them are maybe up-to-date with what seems to be happening on facebook platform right now. It seems the swit

4条回答
  •  迷失自我
    2021-02-07 04:17

    The most simple way to test your facebook login, since you cannot dissable anymore "Enforce HTTPS" option, is to use ngrok:

    ngrok.com

    Im linux user. After installing it just type at your terminal:

    ngrok http 80
    

    and automaticly will be created a new https domain just for your local project. You will see an ui interface in your terminal and your secure domain will be that who starts with https://

    Copy the domain and use it in developers.facebook.com in your app to see if you code is good or not.

    If is good its ok keep going until you will host your project on a secure domain.

    For more info and docs about ngrok.com see: ngrok docs

提交回复
热议问题