My RestAPI server redirects a user request to another webpage (for example google.com) how can I redirect my fron-end to that page, I mean I have a button, when I press on it sends an axios request to my server. my server redirects it to another web page, and I want to show to my client that web-page
I have made an axios
const url = "https://cors-anywhere.herokuapp.com/http://147.13.121.244:4001/redirect"
const client = axios.create({
headers: {
'Content-Type': 'application/json',
'Authorization': 'Basic a3p0ZXN5547asdhMnFUdVZN',
}
});
let result = await client.get(url, {}).then((response) => {
return response
}).catch((error) => {
return error
})