1
我試圖將Google身份驗證添加到我的Django項目。我已經能夠使用不同的Oauth客戶端對象將我的項目配置爲在Heroku上使用我的應用程序,但似乎無法讓它在我的開發服務器上工作。谷歌OAuth投擲edirect_uri_mismatch錯誤
我不斷收到錯誤:
Error: redirect_uri_mismatch
The JavaScript origin in the request, http://localhost:8000, does not match the ones authorized for the OAuth client.
來自谷歌。
我授權的Javascript的起源是:
https://localhost:8000
http://localhost:8000
我授權的重定向URI是:
https://localhost:8000
https://localhost:8000/
https://localhost
http://localhost:8000
http://localhost:8000/
http://localhost
(我嘗試了所有基於相似的問題,意見,這些連擊。)
任何幫助或建議將非常感謝,因爲我似乎無法在API文檔的任何位置找到答案。