title: Domain set cookie for subdomain
body: <p>I looked in many questions about cookies but I didn't find an answer on my problem. I have following scenario:</p>
  
  <p>A user creates a login on <em>example.com</em> and should get a cookie but only for the subdomain <em>fuu.example.com</em>. I generate following HTTP header part:</p>
  
  <pre><code>Set-Cookie: name=TestUser; Domain=fuu.example.com; Path=/; secure; HttpOnly 
  </code></pre>
  
  <p>But when I make a request to <em><a href="https://fuu.example.com" rel="noreferrer">https://fuu.example.com</a></em>, the cookie will be not added to the request. I wonder if it is possible that <em>example.com</em> sets a cookie for <code>fuu.example.com</code>. I know that it is possible that <em>example.com</em> set a cookie for <code>.example.com</code> also for all subdomains for <em>example.com</em> but that's not what I want. </p>
  
  <p>How do I set a cookie for a subdomain? I am not seeing the cookie in a request to the subdomain.</p>