# How to serve first party cookies with Mautic - one instance, several domains

**URL:** <https://forum.mautic.org/t/how-to-serve-first-party-cookies-with-mautic-one-instance-several-domains/12406>\
**Category:** General Discussion\
**Tags:** discussion\
**Created:** [January 23, 2020, 10:58am UTC](https://forum.mautic.org/t/how-to-serve-first-party-cookies-with-mautic-one-instance-several-domains/12406 "2020-01-23T10:58:52Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![aerendir](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aerendir/32/1050_2.png) [@aerendir](https://forum.mautic.org/u/aerendir)\
**Post date:** [July 19, 2020, 4:37pm UTC](https://forum.mautic.org/t/how-to-serve-first-party-cookies-with-mautic-one-instance-several-domains/12406/21 "2020-07-19T16:37:25Z")

</div>

Yes, you are safe with your setup.

Until the second level domain is the same, there are no issues.

---

<div class="post-metadata">

**Author:** ![aerendir](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aerendir/32/1050_2.png) [@aerendir](https://forum.mautic.org/u/aerendir)\
**Post date:** [July 19, 2020, 4:44pm UTC](https://forum.mautic.org/t/how-to-serve-first-party-cookies-with-mautic-one-instance-several-domains/12406/22 "2020-07-19T16:44:50Z")

</div>

Which is the error? If you don’t post it we cannot know which the problem could be.

Are you sure dns are correctly propagated? Did you created a correct ssl certificate for [ma.domain-b.com](http://ma.domain-b.com)? Can you access Mautic going to [ma.domain-b.com](http://ma.domain-b.com)?

---

<div class="post-metadata">

**Author:** ![oguruma](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/oguruma/32/1003_2.png) [@oguruma](https://forum.mautic.org/u/oguruma)\
**Post date:** [July 19, 2020, 6:02pm UTC](https://forum.mautic.org/t/how-to-serve-first-party-cookies-with-mautic-one-instance-several-domains/12406/23 "2020-07-19T18:02:00Z")

</div>

Mautic is installed at [messaging.allthingscoos.com](http://messaging.allthingscoos.com).

The wordpress site in question is [https://coosguide.com](https://coosguide.com). NOTE: the tracking script is only located on the homepage for testing purposes, it’s not in the header at the moment.

The CNAME is set up to point [messaging.coosguide.com](http://messaging.coosguide.com) to [messaging.allthingscoos.com](http://messaging.allthingscoos.com)

I can access my Mautic install at [messaging.coosguide.com](http://messaging.coosguide.com), so the DNS seems to be fine.

I verified that [messaging.coosguide.com](http://messaging.coosguide.com) and [messaging.allthingscoos.com](http://messaging.allthingscoos.com) are both SANs in the certificate.

From the Google Chrome console

`A cookie associated with a cross-site resource at https://messaging.allthingscoos.com/ was set without the `SameSite`attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with`SameSite=None`and`Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.`

If I edit the URL Field under Settings \> URL to "[messaging.coosguide.com](http://messaging.coosguide.com), then the issue goes away (but of course it would break it on the other site).

---

<div class="post-metadata">

**Author:** ![aerendir](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aerendir/32/1050_2.png) [@aerendir](https://forum.mautic.org/u/aerendir)\
**Post date:** [July 19, 2020, 6:24pm UTC](https://forum.mautic.org/t/how-to-serve-first-party-cookies-with-mautic-one-instance-several-domains/12406/24 "2020-07-19T18:24:00Z")

</div>

Which version of Mautic are you running?

---

<div class="post-metadata">

**Author:** ![oguruma](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/oguruma/32/1003_2.png) [@oguruma](https://forum.mautic.org/u/oguruma)\
**Post date:** [July 19, 2020, 6:39pm UTC](https://forum.mautic.org/t/how-to-serve-first-party-cookies-with-mautic-one-instance-several-domains/12406/25 "2020-07-19T18:39:58Z")

</div>

Current Mautic version is 2.16.3

The only thing I can come up with is somewhere [messaging.allthingscoos.com](http://messaging.allthingscoos.com) (the actual domain of the mautic install) should be rewritten to [messaging.coosguide.com](http://messaging.coosguide.com) (the cname).

---

<div class="post-metadata">

**Author:** ![symbinc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/symbinc/32/5356_2.png) [@symbinc](https://forum.mautic.org/u/symbinc)\
**Post date:** [June 30, 2021, 6:50am UTC](https://forum.mautic.org/t/how-to-serve-first-party-cookies-with-mautic-one-instance-several-domains/12406/26 "2021-06-30T06:50:56Z")

</div>

Does this KB exist yet? Would love to read it!

Has this feature been recommended for integration in Mautic core? If not, is there a way to request features? We are migrating from SharpSpring and this is standard feature now over there as well as on all the MAPS we have used – Marketo and Hubspot. Considering the wide use of microsites and product specific domains for modern content marketing, this seems like it should be standard part of Mautic too.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [June 30, 2021, 7:27am UTC](https://forum.mautic.org/t/how-to-serve-first-party-cookies-with-mautic-one-instance-several-domains/12406/27 "2021-06-30T07:27:06Z")

</div>

Hi,  
Check this post:

> [@Webflow site with Mautic on different domain?](https://forum.mautic.org/t/webflow-site-with-mautic-on-different-domain/18333/2):
>
> I am tracking several websites with 1 Mautic install. It shouldn’t be a problem. But today I was thinking about cookies and Google banning them: [Google Chrome is ditching third-party cookies for good. What does this mean for Mautic?](https://forum.mautic.org/t/google-chrome-is-ditching-third-party-cookies-for-good-what-does-this-mean-for-mautic/18350)

[Previous page](https://forum.mautic.org/t/how-to-serve-first-party-cookies-with-mautic-one-instance-several-domains/12406.md?page=1)
