rediriger vers le site Web à partir de promesses Valeur Fetch

fetch("http://example.com/", {
	method: 'POST',
	mode: 'cors',
	body: formData
})
.then(dataWrappedByPromise => dataWrappedByPromise.text())
.then(data => {
	//Redirect is the URL inside the text of the response promise
	window.location.replace(data);
})
FloatDev