0
所以我試圖授權應用程序使用Spotify API的幾種方式,但無論它說什麼無效的redirect_url。Spotify API始終認爲redirect_url無效
<a href="https://accounts.spotify.com/authorize/?client_id=bed1f08b5dec405888c5c66c0e7b35ef&
response_type=code&redirect_uri=http://localhost/callback&scope=user-read-private%20user-read-email&
state=34fFs29kd09">Authorize Spotify</a>
此外,我試圖從Exportify(https://github.com/watsonbox/exportify)借用代碼:
authorize: function() {
client_id = "bed1f08b5dec405888c5c66c0e7b35ef"
window.location = "https://accounts.spotify.com/authorize" +
"?client_id=" + client_id +
"&redirect_uri=" + encodeURIComponent([location.protocol, '//', location.host, location.pathname].join('')) +
"&scope=playlist-read-private%20playlist-read-collaborative" +
"&response_type=token";
}
但是我還是無效REDIRECT_URL。我已經列入白名單以下URL在應用程序管理面板:
- http://localhost/callback
- http://localhost
- http://localhost:80/callback
- 本地主機:80 /回調/
- http://localhost/callback/
- http://localhost:/callback/
- http://127.0.0.11.4k
- http://127.0.0.1
- http://127.0.0.1/
- http://127.0.0.1/callback/
- http://localhost.me
- http://localhost/
有沒有人遇到和解決這個問題?
(編輯:localhost.me是通過修改主機使用不localhosty什麼企圖)
嘿@BWStearns,對不起你遇到了這個問題。我們意識到這一點,現在我們正在進行修復。 –
@HughRawlinson不用擔心!我認爲,如果警告是在頁面的頂部,或者至少在頁面上方,沒有人會遇到這個問題(回顧我在解決這個問題時發現的帖子,我認爲其他人也碰到過)。非常感謝您的支持! (在我的回答中,我的意思並不是很尖銳,我真的很累!) – BWStearns