diff --git a/server/node/server.cjs b/server/node/server.cjs index 85abca9d..23397bc2 100644 --- a/server/node/server.cjs +++ b/server/node/server.cjs @@ -41,7 +41,8 @@ app.get('/', async (req, res, next) => { }) const proxyFunc = async (req, res, next) => { - const urlParam = req.query.url; + + const urlParam = req.headers['risu-url'] ? JSON.parse(decodeURIComponent(req.headers['risu-url'])) : req.query.url; if (!urlParam) { res.status(400).send({