# Authorize without IFrame when on Custom domain

**URL:** <https://community.auth0.com/t/authorize-without-iframe-when-on-custom-domain/43687>\
**Category:** Get Help\
**Tags:** custom-domain\
**Created:** [May 27, 2020, 1:04pm UTC](https://community.auth0.com/t/authorize-without-iframe-when-on-custom-domain/43687 "2020-05-27T13:04:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luke1988](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/luke1988/32/13158_2.png) [@luke1988](https://community.auth0.com/u/luke1988)\
**Post date:** [May 27, 2020, 1:04pm UTC](https://community.auth0.com/t/authorize-without-iframe-when-on-custom-domain/43687/1 "2020-05-27T13:04:51Z")

</div>

Hi,

I am just wondering whether IFrame workaround is still necessary when using Custom domains. App is on [app.MyDomain.com](http://app.MyDomain.com) and Auth0 is set to [auth.MyDomain.com](http://auth.MyDomain.com)

[Here](https://auth0.com/docs/cross-origin-authentication) you state:

> When authentication requests are made from your application (via the Lock widget or a custom login form) to Auth0, the user’s credentials are sent to a domain which differs from the one that serves your application. Collecting user credentials in an application served from one origin and then sending them to another origin

And also this

> Auth0 provides a cross-origin authentication flow which makes use of [third-party cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#Third-party_cookies). The use of third-party cookies allows Lock and Auth0’s backend to perform the necessary checks to allow for secure authentication transactions across different origins.

So again - running on Custom domains where the root domain (in this example .MyDomain.com) is same in both case - is still considered as third-party cookie?

Thanks for deeper explanation!  
Luke

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 28, 2020, 8:42pm UTC](https://community.auth0.com/t/authorize-without-iframe-when-on-custom-domain/43687/3 "2020-05-28T20:42:30Z")

</div>

Hi @luke1988,

We are actually currently moving towards refresh token rotation, which does away with silent auth and the iframes. If you are concerned with this, it may be worth looking into making this switch, as it should provide a more robust way to persist sessions in the client.

> **[Refresh Token Rotation](https://auth0.com/docs/secure/tokens/refresh-tokens/refresh-token-rotation)**
>
> Describes how refresh token rotation provides greater security by issuing a new refresh token with each request made to Auth0 for a new access token by a client using refresh tokens.

I recognize I didn’t answer your iframe question, someone else may have a more in-depth response for that.

Hope this helps,  
Dan

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 13, 2020, 10:23pm UTC](https://community.auth0.com/t/authorize-without-iframe-when-on-custom-domain/43687/4 "2020-07-13T22:23:12Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
