How to capture cookies value from Cookies and pass it under Headers?

When I make some calls, system generate a cookies and it shows Cookies link (link next to Code, comments).

I would like to copy those cookies and pass it under Header as values. How can I do that?

This post shows you how you can do it in the Postman sandbox: