mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 09:26:33 +01:00
Remove unnecessary cast of "enableCorsProxy"
This commit is contained in:
parent
6a516bf3eb
commit
cf256a547c
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user