This library was created to aid in cookies being read and written from and to a response and request. This allows consumers to store and then subsequently send cookies with XHR requests that use cookies for authentication for example.
Here is the Git repository for this library.