如何禁用 Enforce HTTPS for facebook auth at localhost?
How to disable Enforce HTTPS for facebook auth at localhost?
我尝试在我的 Django 项目中通过 Facebook 配置社交身份验证。
由于我正在本地主机上进行测试(已经在 ALLOWED_HOSTS
中包含基于 http 的站点),我需要禁用 Enforce HTTPS.
我的 fb 应用程序现在处于开发模式,但默认情况下 Enforce HTTPS 已启用并且显然无法更改。我该如何解决?
谢谢!
您不能再禁用它,security reasons
需要它
Enforce HTTPS. This setting requires HTTPS for OAuth Redirects, and it
requires and Facebook JavaScript SDK calls that return or require an
access token are only from HTTPS pages. 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 October 6, 2018.
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.
我尝试在我的 Django 项目中通过 Facebook 配置社交身份验证。
由于我正在本地主机上进行测试(已经在 ALLOWED_HOSTS
中包含基于 http 的站点),我需要禁用 Enforce HTTPS.
我的 fb 应用程序现在处于开发模式,但默认情况下 Enforce HTTPS 已启用并且显然无法更改。我该如何解决?
谢谢!
您不能再禁用它,security reasons
需要它Enforce HTTPS. This setting requires HTTPS for OAuth Redirects, and it requires and Facebook JavaScript SDK calls that return or require an access token are only from HTTPS pages. 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 October 6, 2018. 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.