What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-05 14:00:04
redirect to website from promise value 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.re... Add solution