Может кто-нибудь объяснить мне, почему этот код не производит HTTP-запрос на Edge? https://jsfiddle.net/sectioni/tyr5fLgc/1/
let url = "/test.aspx";
// don't change this to a const because the append will not work in Edge
let data = new URLSearchParams();
data.append("userPreferences", "bla");
let promise = fetch(url, {
method: "POST", // POST, PUT, DELETE, etc.
body: data,
cache: "no-cache", // no-store, reload, no-cache, force-cache, or only-if-cached
keepalive: true
});
Он работает на Chrome и Firefox, и если вы удалите часть тела, запрос будет отправлен на Edge.