Я хотел бы получить HTML-страницу: https://cas.univ -lemans.fr / cas / login , но у моего ответа нет тела .... У кого-нибудь есть идея?
мой код:
this.header = {
"Access-Control-Allow-Origin": "*",
"mode": "no-cors",
"Content-Type" : "text/html"
};
fetch(url, this.header)
.then(function(response){
console.log(response);
response.text();
})
.then((body) => {
console.log(body);
})
консоль:
![Console result](https://i.stack.imgur.com/TA6ye.png)