[問題] Google API OAuth2

看板Web_Design作者 ( http://f23ko.com )時間12年前 (2013/12/07 11:42), 編輯推噓2(202)
留言4則, 3人參與, 最新討論串1/1
目前在嘗試的時候,一直遇到這樣的錯誤 我是依照這個網頁的範例去試的 https://developers.google.com/accounts/docs/OAuth2WebServer 用來測試的頁面如下 http://f23ko.com/oauth2/oauth2.html 結果: 錯誤:redirect_uri_mismatch The redirect URI in the request: http://f23ko.com did not match a registered redirect URI 要求詳情 cookie_policy_enforce=false scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile response_type=code access_type=online redirect_uri=http://f23ko.com state=STD_TEST display=page client_id=131......tent.com 然後,我也已經把把這個網址 加到Google Cloud Console的通知端點去了 http://i.imgur.com/5d4Wz22.png
不知道為什麼會跳出錯誤訊息 我有哪裡搞錯了嗎? -- F23縮網址 http://f23.tw邪惡的縮網址網站 因為可以偷看噗浪上的朋友誰上線了 http://f23ko.com/676 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.38.68.226

12/07 12:10, , 1F
有遇到一樣問題 推一下
12/07 12:10, 1F

12/07 16:22, , 2F

12/07 16:23, , 3F
redirect這部分有填嗎? 我是因為用JS所以不需要啦www
12/07 16:23, 3F

12/07 16:42, , 4F
YA~ 成功了!感謝2樓
12/07 16:42, 4F
文章代碼(AID): #1IefaSmI (Web_Design)