XMLHttpRequest (XHR) は、セキュリティの観点で fetch に比べて以下のような弱点や劣る部分があります。これらは、設計の古さや使用時の複雑さから生じるものです。 1. CORS(クロスオリジンリソース共有)の制御が複雑 fetchの優位性: fetch では CORS に関連する ...
The foundation that makes AJAX possible is the communication layer with the server. The most complete option for performing this communication is the JavaScript XMLHttpRequest object. If ...