gpt4 book ai didi

django - HTTPError at/social-auth/login/twitter/403

转载 作者:太空宇宙 更新时间:2023-11-03 14:32:13 25 4
gpt4 key购买 nike

我正在尝试使用 oauth 登录 Twitter。我已经包含了 ssl 证书,让我们加密保护我的 url,因此我的 url 是 https,但我仍然收到这个错误,我应该在哪里更改我的 django 代码。

我已经使用 social-oauth 库进行 Twitter 登录

最佳答案

social-auth 需要 https 它不会在 http 上工作

而不是 192.x.x.x.x:xxxx127.x.x.x.x:xxxx 使用 localhost 它只会工作,因为他们需要 https Facebook 推特等...

就在地址栏去localhost:8000 它会在 facebook 上遇到同样的问题

关于django - HTTPError at/social-auth/login/twitter/403,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51707376/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com