iframe / popup中的Google oauth2授权

qMa*_*Max 5 x-frame-options oauth-2.0

我的应用程序可在iframe中运行(注入chrome扩展名)。该应用程序需要向用户询问有关Google oauth2的权限。由于存在X-Frame-Options:SAMEORIGIN,网址https://accounts.google.com/o/oauth2/auth,因此重定向到oauth-page不能直接在iframe中使用

有没有办法在弹出窗口中显示页面?

小智 1

Google+ 登录似乎适合您的情况。它带有一个按钮,可以在弹出窗口中触发身份验证流程。