Upgrade Express to version 5.2.1 and update related dependencies in package.json and package-lock.json. Refactor server CORS configuration to accommodate Express 5 changes. Enhance routing logic in Vue components for improved path normalization and menu handling. Update HTML asset references for better loading performance and accessibility improvements in various components.
This commit is contained in:
@@ -85,7 +85,8 @@ app.use(cors({
|
||||
methods: ['GET','POST','PUT','PATCH','DELETE','OPTIONS'],
|
||||
allowedHeaders: ['Content-Type','Authorization']
|
||||
}));
|
||||
app.options('*', cors());
|
||||
// Express 5 nutzt path-to-regexp v6; '*' ist dort als Pattern ungueltig.
|
||||
app.options('/{*any}', cors());
|
||||
|
||||
// Erhöhe Header-Limits für große Requests
|
||||
app.use(bodyParser.json({ limit: '50mb' }));
|
||||
|
||||
Reference in New Issue
Block a user