Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
|
@@ -2,7 +2,10 @@ import express from 'express';
|
|
| 2 |
import fetch, { Headers as FetchHeaders } from 'node-fetch';
|
| 3 |
|
| 4 |
const app = express();
|
| 5 |
-
app.use(express.raw({
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
app.options('*', (req, res) => {
|
| 8 |
const origin = req.headers.origin;
|
|
|
|
| 2 |
import fetch, { Headers as FetchHeaders } from 'node-fetch';
|
| 3 |
|
| 4 |
const app = express();
|
| 5 |
+
app.use(express.raw({
|
| 6 |
+
type: '*/*',
|
| 7 |
+
limit: '100mb' // Увеличен лимит до 100MB
|
| 8 |
+
}));
|
| 9 |
|
| 10 |
app.options('*', (req, res) => {
|
| 11 |
const origin = req.headers.origin;
|