A new measurement of the cosmic X-ray background