package.json
"proxy": "backend localhost i.e., https://localhost:5000"
react frontend
useEffect(() => {
const res = fetch('/api');
console.log(res);
}, [])
backend
app.get('/api', cors(), (req, res) => {
res.set('Access-Control-Allow-Origin', '*');
const link = 'https://yourApiLink.com';
fetch(link).then(response => response.text()).then(text => console.log(text));
});