mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 10:57:45 +01:00
Server: Update CORS proxy body limit
The body-parser middleware only accepted 50mb of data, bump this value to 200mb. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
875760eadf
commit
3d8160cf25
@ -222,7 +222,9 @@ if (!cliArguments.disableCsrf) {
|
|||||||
|
|
||||||
if (getConfigValue('enableCorsProxy', false) || cliArguments.corsProxy) {
|
if (getConfigValue('enableCorsProxy', false) || cliArguments.corsProxy) {
|
||||||
const bodyParser = require('body-parser');
|
const bodyParser = require('body-parser');
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json({
|
||||||
|
limit: '200mb',
|
||||||
|
}));
|
||||||
console.log('Enabling CORS proxy');
|
console.log('Enabling CORS proxy');
|
||||||
|
|
||||||
app.use('/proxy/:url(*)', async (req, res) => {
|
app.use('/proxy/:url(*)', async (req, res) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user