Cookies and not be added to a response in the callback phase because there
is no response in the context.
A possible fix would be:
Add the cookies to the context. If there is a response in the context, add
them to the response, else add them to as a property. If the request
process is done the code returning the response queries the context.