From 735c4e72681b6b362f4dffb326c4db02e0e4928f Mon Sep 17 00:00:00 2001 From: kingbri Date: Mon, 27 Nov 2023 00:17:07 -0500 Subject: [PATCH] Server: Fix CORS proxy with URLs Using slashes completely stripped the rest of the URL. Fix that. Signed-off-by: kingbri --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 463c338c7..fcea9b779 100644 --- a/server.js +++ b/server.js @@ -308,7 +308,7 @@ app.use(function (req, res, next) { if (getConfigValue('enableCorsProxy', false) === true || cliArguments.corsProxy === true) { console.log('Enabling CORS proxy'); - app.use('/proxy/:url', async (req, res) => { + app.use('/proxy/:url(*)', async (req, res) => { const url = req.params.url; // get the url from the request path // Disallow circular requests