fix: increase Socket.IO maxHttpBufferSize to 300MB to support larger drafting payloads and prevent 413 errors.
This commit is contained in:
@@ -17,6 +17,7 @@ const __dirname = path.dirname(__filename);
|
||||
const app = express();
|
||||
const httpServer = createServer(app);
|
||||
const io = new Server(httpServer, {
|
||||
maxHttpBufferSize: 300 * 1024 * 1024, // 300MB
|
||||
cors: {
|
||||
origin: "*", // Adjust for production,
|
||||
methods: ["GET", "POST"]
|
||||
|
||||
Reference in New Issue
Block a user