title: Domain Attribute Invalid - Set Cookies
body: <p>I have built a basic demo backend using nodejs and ui using reactjs. When I login in using credentials, I am trying to set cookies. But it says some things like this "<strong>this. set-cookie domain attribute was invalid with regards to the current host URL</strong>". I have deployed both backend and ui on to Heroku separately. All network request is working fine. But the only issue I am facing is set-cookies not getting updated says domain attribute was invalid. Can anyone please guide me or suggest me where I am going wrong </p>
  
  <p>Ui Doamin URL - <a href="https://visitplanui.herokuapp.com/" rel="noreferrer">https://visitplanui.herokuapp.com/</a></p>
  
  <p>Node end point what i configured is something mentioned below </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> return res.
   cookie("auth",token,{domain: "visitplanui.herokuapp.com",path: "/"}).status(200).
   send ({code:  200,status: "Account details found &amp; authenticated",})</code></pre>
  </div>
  </div>
  </p>
  
  <p>FYI please find the below screenshots </p>
  
  <p>.<a href="https://i.stack.imgur.com/q9GJu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/q9GJu.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/GYxI3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GYxI3.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/NEVtN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NEVtN.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/OCsXW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/OCsXW.png" alt="enter image description here"></a></p>