let header = new Headers({ "User-Agent": "My User-Agent", }); fetch("url", { method: 'GET', withCredentials: true, crossorigin: true, headers: header, }).then((res) => { return res.text(); }).then((result) => { console.log(result); }).catch((err) => { console.log(err); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)