Set-Cookie not working

I saw in another thread that there is a problem with Set-Cookie in Angular 2.

But I don’t know how to implement this in JS (I have an older version of Ionic 2)

image

How do I do this in JS? Or any other workaround?

yea i am having the same problem in the new version too (written in typescript). I can’t seem to access or see the set-cookie of the header. But i can see it in the Browsers Network Tab. Any help would be great!