Add credentials to the HTTP request when fetching data.