Merge pull request #1406 from bdashore3/staging

Fix CORS proxy with URLs
This commit is contained in:
Cohee 2023-11-27 10:29:45 +02:00 committed by GitHub
commit a10b6da477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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