Edge fetch bug

by sectioni

JavaScript

let url = "https://www.mydancepartner.net";

// 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
});