Google oauth 400 response: No 'Access-Control-Allow-Origin' header is present on the requested resource

后端 未结 1 1359
[愿得一人]
[愿得一人] 2020-12-18 07:22

I\'m trying to make request from client-side javascript to the google oauth endpoint (https://accounts.google.com/o/oauth2/v2/auth) with a google calendar scope. Thing is, I

相关标签:
1条回答
  • 2020-12-18 08:02

    I believe you should redirect the browser to this oauth2 endpoint rather than just trying to make an ajax request to it.

    https://developers.google.com/identity/protocols/OAuth2UserAgent#overview

    0 讨论(0)
提交回复
热议问题