Add cookies to the API request.