Insecure Login Blocked: You can't get an access token or log in to this app from an insecure page. Try re-loading the page as https://

后端 未结 9 2560
独厮守ぢ
独厮守ぢ 2020-12-06 01:04

I am implementing Passport Facebook Authentication by linking the Facebook Authentication API route to a button using href like:



        
9条回答
  •  感情败类
    2020-12-06 01:48

    Amazingly I just started trying to do the same thing like an hour ago and have been having the same issue. If you go into the FB developer portal and go to Settings under Facebook Login there's an option to Enforce HTTPS.

    Further Investigation Showed:

    "Enforce HTTPS. This setting requires HTTPS for OAuth Redirects and pages getting access tokens with the JavaScript SDK. All new apps created as of March 2018 have this setting on by default and you should plan to migrate any existing apps to use only HTTPS URLs by March 2019. Most major cloud application hosts provide free and automatic configuration of TLS certificates for your applications. If you self-host your app or your hosting service doesn't offer HTTPS by default, you can obtain a free certificate for your domain(s) from Let's Encrypt."

    Reference: Login Security

提交回复
热议问题