With the evolution of JS we (modern js app developers) mostly use JSON to transfer data. Moreover XMLHttpRequest() method also became legacy because Fetch API is replacing it.
We neither transfer XML nor use XMLHttpRequest() but we still add the x-requested-with: XMLHttpRequest header to inform the server about the async request type.
Is there a better, modern header for this purpose. All research leads to this legacy header.