---
title: "Comment by Indexe on \"OAuth Non-Happy Path to ATO\" | Hashnode"
description: "Great article. I was wondering, why use window.open here? Can't you achieve the same behavior without it? Just curious if there’s a specific reason behind it."
url: "https://hashnode.com/posts/oauth-non-happy-path-to-ato/67420e9294e2bf9e3883a715/comment/67629e1fb2a9f8fcaaadf920"
---

[Discussion](https://hashnode.com/posts/oauth-non-happy-path-to-ato/67420e9294e2bf9e3883a715)

Comment [OAuth Non-Happy Path to ATO](https://hashnode.com/posts/oauth-non-happy-path-to-ato/67420e9294e2bf9e3883a715)

[Indexe](https://hashnode.com/@indexe)

[Dec 18, 2024](https://hashnode.com/posts/oauth-non-happy-path-to-ato/67420e9294e2bf9e3883a715/comment/67629e1fb2a9f8fcaaadf920)

Great article. I was wondering, why use window.open here? Can't you achieve the same behavior without it? Just curious if there’s a specific reason behind it.

[Omid Rezaei](https://hashnode.com/@omidrezaei)

[Dec 24, 2024](https://hashnode.com/posts/oauth-non-happy-path-to-ato/67420e9294e2bf9e3883a715/comment/67629e1fb2a9f8fcaaadf920#reply-676a7d7b5b16e250500c6457)

we need the attacker domain in the referer header in the last step so because of that here I use window.open to achieve that
