🩹 Fix CORS issue

pull/112/head
hans362 2 years ago
parent b6c6ca05e8
commit 6a7bc25352
Signed by: hans362
GPG Key ID: B186D77ABEC2A785

@ -14,10 +14,10 @@ app.get('/api', (req, res) => {
Cookie: cookies Cookie: cookies
} }
}).then((resp) => { }).then((resp) => {
res.send(resp.data); res.header("Access-Control-Allow-Origin", "*").send(resp.data);
}).catch((err) => { }).catch((err) => {
console.log(err); console.log(err);
res.send(err); res.header("Access-Control-Allow-Origin", "*").send(err);
}); });
}); });

Loading…
Cancel
Save