EDR concentrates on endpoint activity. XDR connects multiple supported security domains. The actual sources and capabilities vary by implementation.