How can i get response header (set-cookie) using post method from API

Hello,
Before I started, I wanted to say that I researched this topic for a few hours, but I couldn’t find anything.

return this.http.post(url, this.formData, {observe: 'response'}).subscribe(data => {
        console.log(data.headers.get('Set-Cookie'));
       }, error => {
        console.log(error);
      })

this code return null…