Add support for connection using cookie auth