A time-resolved ultrafast x-ray spectrometer is developed in order to extract the x-ray absorption near-edge spectroscopy (XANES) structure of an Al sample in thewarm dense matter regime. In this context, an intense, broadband, short (ps) x-ray source based on the M-band emission from high-Z plasmas is optimized to maximize the photon flux around the Al K-edge. An experiment is reported, devoted to probe a solid Al foil isochorically heated by laser-produced protons up to 3 eV. The experimental x-ray spectra lead to an estimation of the electron temperature with an accuracy of 15%. In good agreement with two different theoretical approaches, the observed progressive smoothing of the XANES structures is clearly related to a significant loss ...