# FacebookとGoogleのOAuthを新しいウィンドウで？

**URL:** <https://meta.discourse.org/t/facebook-and-google-oauth-in-new-window/251065>\
**Category:** Product Support\
**Created:** [2023 年 1 月 8 日午後 6:21 UTC](https://meta.discourse.org/t/facebook-and-google-oauth-in-new-window/251065 "2023-01-08T18:21:15Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![EGreg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/egreg/32/133614_2.png) [@EGreg](https://meta.discourse.org/u/EGreg)\
**Post date:** [2023 年 1 月 8 日午後 6:21 UTC](https://meta.discourse.org/t/facebook-and-google-oauth-in-new-window/251065/1 "2023-01-08T18:21:15Z")

</div>

Discourseをiframeでホストしているため、Google OAuthは、読み込みを防ぐためにx-frame-optionsが設定されているため、実際には機能しません。

やりたいことは、`window.open`を使用して、FBとGoogleの「小さい」OAuth URLを開き、閉じるときに`window.opener`を適切にリダイレクトすることです。これはDiscourseの設定で可能ですか？または、locationリダイレクトのコードはどこにあり、変更できますか？

---

_[View the full topic](https://meta.discourse.org/t/facebook-and-google-oauth-in-new-window/251065)._
