# Avoiding third-party cookies with custom domain

**URL:** <https://community.auth0.com/t/avoiding-third-party-cookies-with-custom-domain/138061>\
**Category:** Get Help\
**Tags:** authentication-sessions, sessions\
**Created:** [July 3, 2024, 6:29pm UTC](https://community.auth0.com/t/avoiding-third-party-cookies-with-custom-domain/138061 "2024-07-03T18:29:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abcdef](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/abcdef/32/58295_2.png) [@abcdef](https://community.auth0.com/u/abcdef)\
**Post date:** [July 3, 2024, 6:29pm UTC](https://community.auth0.com/t/avoiding-third-party-cookies-with-custom-domain/138061/1 "2024-07-03T18:29:56Z")

</div>

I want to enable silent token refresh on Firefox and Safari, which block many third-party cookies.

Currently, my domains are setup like this:

- `auth.example.org` points to the login form hosted by Auth0
- `app.example.org` is the resource that I want to grant access to

These share an SLD (`example.org`); does this mean that the app will have access to the appropriate Auth0 cookies?

Do I need to change my DNS entries to get this working?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [July 3, 2024, 10:02pm UTC](https://community.auth0.com/t/avoiding-third-party-cookies-with-custom-domain/138061/2 "2024-07-03T22:02:50Z")

</div>

Hey there @abcdef welcome to the community!

> [@abcdef](#):
>
> These share an SLD (`example.org`); does this mean that the app will have access to the appropriate Auth0 cookies?

With a custom domain in place your app will have access to necessary cookies while being able to avoid the use third party cookies.

> [@abcdef](#):
>
> Do I need to change my DNS entries to get this working?

There are minor steps you need to take to essentially verify your domain - It depends on if you plan to use [Auth0-Managed certificates](https://auth0.com/docs/customize/custom-domains/auth0-managed-certificates) or [self-managed certificates](https://auth0.com/docs/customize/custom-domains/self-managed-certificates).

---

<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 18, 2024, 7:45pm UTC](https://community.auth0.com/t/avoiding-third-party-cookies-with-custom-domain/138061/4 "2024-07-18T19:45:45Z")

</div>

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