<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[FusionAuth setting wrong domain the the cookie]]></title><description><![CDATA[<p dir="auto">I am using custom local domains.</p>
<p dir="auto"><a href="https://auth.domain.test" rel="nofollow ugc">https://auth.domain.test</a>  &lt;= FusionAuth<br />
<a href="https://app.domain.test" rel="nofollow ugc">https://app.domain.test</a>   &lt;= Angular app</p>
<p dir="auto">I also tried FusionAuth at <a href="https://auth.app.domain.test" rel="nofollow ugc">https://auth.app.domain.test</a> but I still get the same issue and chrome block the cookie.</p>
<p dir="auto">I am getting issue with cookies, the domain on cookies is test.</p>
<p dir="auto">Example: app.at_exp=1742980022; Domain=<strong>test</strong>; Max-Age=3599; Path=/; SameSite=Lax; Secure</p>
<p dir="auto">Any idea why we endup wuth Domain=test ?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/2899/fusionauth-setting-wrong-domain-the-the-cookie</link><generator>RSS for Node</generator><lastBuildDate>Fri, 07 Aug 2026 12:07:46 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/2899.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Mar 2025 08:09:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FusionAuth setting wrong domain the the cookie on Tue, 20 May 2025 14:02:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/3468">@hamza-chouaibi</a> Been having this same exact issue for the last one week. When I stumbled onto this and applied the suggestions here is when it now seems to work. I use the .dev TLD instead.</p>
]]></description><link>https://fusionauth.io/community/forum/post/7993</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7993</guid><dc:creator><![CDATA[o.melvinotieno]]></dc:creator><pubDate>Tue, 20 May 2025 14:02:59 GMT</pubDate></item><item><title><![CDATA[Reply to FusionAuth setting wrong domain the the cookie on Wed, 02 Apr 2025 09:53:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/3468">@hamza-chouaibi</a> said in <a href="/community/forum/post/7909">FusionAuth setting wrong domain the the cookie</a> <a href="https://iogames.games/" rel="nofollow ugc">io games</a>:</p>
<blockquote>
<p dir="auto">I am using custom local domains.</p>
<p dir="auto"><a href="https://auth.domain.test" rel="nofollow ugc">https://auth.domain.test</a> &lt;= FusionAuth<br />
<a href="https://app.domain.test" rel="nofollow ugc">https://app.domain.test</a> &lt;= Angular app</p>
<p dir="auto">I also tried FusionAuth at <a href="https://auth.app.domain.test" rel="nofollow ugc">https://auth.app.domain.test</a> but I still get the same issue and chrome block the cookie.</p>
<p dir="auto">I am getting issue with cookies, the domain on cookies is test.</p>
<p dir="auto">Example: app.at_exp=1742980022; Domain=test; Max-Age=3599; Path=/; SameSite=Lax; Secure</p>
<p dir="auto">Any idea why we endup wuth Domain=test ?</p>
</blockquote>
<p dir="auto">The SameSite=Lax attribute restricts the cookie from being sent with cross-site requests. If your application is making requests across subdomains, you may need to adjust this setting to SameSite=None; Secure for cross-origin requests.</p>
]]></description><link>https://fusionauth.io/community/forum/post/7935</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7935</guid><dc:creator><![CDATA[lokihak188]]></dc:creator><pubDate>Wed, 02 Apr 2025 09:53:33 GMT</pubDate></item><item><title><![CDATA[Reply to FusionAuth setting wrong domain the the cookie on Fri, 28 Mar 2025 06:52:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2507">@mark-robustelli</a></p>
<p dir="auto">Here is a detailed explanation of my tests.</p>
<h3>Modifying <code>/etc/hosts</code></h3>
<p dir="auto">I added the following entries to my <code>/etc/hosts</code> file:</p>
<pre><code class="language-plaintext">127.0.0.1   auth.domain.test
127.0.0.1   app.domain.test
</code></pre>
<h3>Nginx Proxy Configuration</h3>
<h4>Authentication Service</h4>
<pre><code class="language-nginx">server {
    listen 443;
    server_name auth.domain.test;
    ssl_certificate     /etc/nginx/conf.d/ssl/localhost.crt;
    ssl_certificate_key /etc/nginx/conf.d/ssl/localhost.key;

    location / {
        proxy_pass http://EC2-instance-IP:9011;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header "X-Forwarded-Port" "80";
        proxy_http_version 1.1;
    }
}
</code></pre>
<h4>Application Service</h4>
<pre><code class="language-nginx">server {
    listen 443;
    server_name app.domain.test;
    ssl_certificate     /etc/nginx/conf.d/ssl/localhost.crt;
    ssl_certificate_key /etc/nginx/conf.d/ssl/localhost.key;

    location / {
        proxy_pass http://app-container:4200;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
</code></pre>
<h2>Testing Different TLDs</h2>
<p dir="auto">I then replaced the <code>.test</code> TLD with several alternatives to determine which ones worked in this local setup. The tested TLDs and their outcomes are summarized in the table below:</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>TLD</th>
<th>Result</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>.local</code></td>
<td>Failed</td>
</tr>
<tr>
<td><code>.test</code></td>
<td>Failed</td>
</tr>
<tr>
<td><code>.internal</code></td>
<td>Failed</td>
</tr>
<tr>
<td><code>.net</code></td>
<td>Succeeded</td>
</tr>
<tr>
<td><code>.org</code></td>
<td>Succeeded</td>
</tr>
<tr>
<td><code>.com</code></td>
<td>Succeeded</td>
</tr>
</tbody>
</table>
<p dir="auto">Nothing changed in all the tests except the TLDs, so I doubt it's an issue with the proxy.</p>
<p dir="auto">We deciced to use .net for our local dev env and this working fine now for all our develpers.</p>
]]></description><link>https://fusionauth.io/community/forum/post/7925</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7925</guid><dc:creator><![CDATA[hamza.chouaibi]]></dc:creator><pubDate>Fri, 28 Mar 2025 06:52:33 GMT</pubDate></item><item><title><![CDATA[Reply to FusionAuth setting wrong domain the the cookie on Thu, 27 Mar 2025 22:27:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/3468">@hamza-chouaibi</a> Have you been through the <a href="https://fusionauth.io/docs/operate/deploy/proxy-setup" rel="nofollow ugc">FusionAuth and Proxies</a> documentation? Are you sure Nginx has been configured properly?</p>
]]></description><link>https://fusionauth.io/community/forum/post/7919</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7919</guid><dc:creator><![CDATA[mark.robustelli]]></dc:creator><pubDate>Thu, 27 Mar 2025 22:27:53 GMT</pubDate></item><item><title><![CDATA[Reply to FusionAuth setting wrong domain the the cookie on Thu, 27 Mar 2025 00:10:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2507">@mark-robustelli</a> Thank you for ther reply.</p>
<p dir="auto">There is my setup.</p>
<p dir="auto">Local dev environement all running on docker containers with one Nginx acting as proxy for all of them.</p>
<p dir="auto">All the custom domain are set in /etc/hosts<br />
All domains running on SSL with self signed certificate.</p>
<p dir="auto">For each test I only change the tld<br />
so it's<br />
Application:  <a href="https://app.domain.tld" rel="nofollow ugc">https://app.domain.tld</a><br />
FusionAuth:  <a href="https://auth.domain.tld" rel="nofollow ugc">https://auth.domain.tld</a></p>
<p dir="auto">Tested with these .test. .local, .test. and .net</p>
<p dir="auto">.local, .test amd .internal ending up in errors with the domain test or local</p>
<p dir="auto">.net, .com and org both woks</p>
<p dir="auto">for .dev can't even get the SSL to work</p>
<p dir="auto">We will just use one of the working tld at the moment for all our dev stack.</p>
<p dir="auto">The only thing in common that I can find for these tls is that they are listed as Reserved domains in <a href="https://en.wikipedia.org/wiki/Top-level_domain" rel="nofollow ugc">https://en.wikipedia.org/wiki/Top-level_domain</a></p>
]]></description><link>https://fusionauth.io/community/forum/post/7914</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7914</guid><dc:creator><![CDATA[hamza.chouaibi]]></dc:creator><pubDate>Thu, 27 Mar 2025 00:10:46 GMT</pubDate></item><item><title><![CDATA[Reply to FusionAuth setting wrong domain the the cookie on Wed, 26 Mar 2025 15:14:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/3468">@hamza-chouaibi</a> Can you tell me a little more about how you have FusionAuth configured and what you are trying to do? My assumption is that you are using a JWT. Have you checked the <strong>Issuer</strong> setting in FusionAuth?  Go to <strong>Applications</strong> -&gt; <strong>Edit</strong> -&gt; <strong>JWT</strong> tab.</p>
<p dir="auto"><img src="/community/forum/assets/uploads/files/1743001944303-b0f0be7e-3198-457b-bbf8-917756d7cc58-image.png" alt="b0f0be7e-3198-457b-bbf8-917756d7cc58-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://fusionauth.io/community/forum/post/7910</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7910</guid><dc:creator><![CDATA[mark.robustelli]]></dc:creator><pubDate>Wed, 26 Mar 2025 15:14:24 GMT</pubDate></item></channel></rss>