title: Why doesn't set cookie work with angular and service workers from external API
body: <p>I created an application with angular 8 and it works just fine. App is not hosted on the same domain like the API. </p>
  
  <p>When I call API to login or register it returns Set-Cookie value, and then that value is used for every request to make it authorized.</p>
  
  <p>PROBLEM: Once i installed service workers calls to remote API don't work, instead of Cookie being stored there is nothing.</p>
  
  <p>I am new to service workers.</p>