Remove unnecessary cast of "enableCorsProxy"

This commit is contained in:
Cohee 2023-12-07 00:57:23 +02:00
parent 6a516bf3eb
commit cf256a547c
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ app.use(function (req, res, next) {
next();
});
if (getConfigValue('enableCorsProxy', false) === true || cliArguments.corsProxy) {
if (getConfigValue('enableCorsProxy', false) || cliArguments.corsProxy) {
const bodyParser = require('body-parser');
app.use(bodyParser.json());
console.log('Enabling CORS proxy');