π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
:lock: Updates CORS proxy to use res.status
Alicia Sykes6cd9eac49b95
diff --git a/services/cors-proxy.js b/services/cors-proxy.jsindex 97ac63b3..9c51214c 100644--- a/services/cors-proxy.js+++ b/services/cors-proxy.js@@ -23,7 +23,7 @@ module.exports = (req, res) => {// Get desired URL, from Target-URL headerconst targetURL = req.header('Target-URL');if (!targetURL) {- res.send(500, { error: 'There is no Target-Endpoint header in the request' });+ res.status(500).send({ error: 'There is no Target-Endpoint header in the request' });return;}// Apply any custom headers, if needed@@ -40,8 +40,8 @@ module.exports = (req, res) => {// Make the request, and respond with resultaxios.request(requestConfig).then((response) => {- res.send(200, response.data);+ res.status(200).send(response.data);}).catch((error) => {- res.send(500, { error });+ res.status(500).send({ error });});};