API to add cookies to the client