title: AngularJs: How to set same cookie on different domains
body: <p>I have 2 <strong>domains</strong>:</p>
  
  <ol>
  <li>www.site1.com</li>
  <li>www.site2.com</li>
  </ol>
  
  <blockquote>
    <p><strong>Important Notes:</strong><br>
    <em>not sub domain!</em><br>
    <em><code>Allow-Origin</code> are enable on both domains.</em><br>
    <em>have full Access to both of domains.</em></p>
  </blockquote>
  
  <p><strong>Question:</strong></p>
  
  <p>How to set a cookie on <strong>site1</strong> &amp; get that cookie on <strong>site2</strong> ?</p>
  
  <p><strong>I want to use it on AngularJs, no matter if using jQuery in your examples.</strong></p>