Merge branch 'next' into develop

This commit is contained in:
xilesun 2025-03-03 18:46:21 +08:00
commit 8104e7bd11
4 changed files with 80 additions and 1992 deletions

View File

@ -8,7 +8,7 @@
"@nocobase/build": "1.6.0-alpha.29", "@nocobase/build": "1.6.0-alpha.29",
"@nocobase/client": "1.6.0-alpha.29", "@nocobase/client": "1.6.0-alpha.29",
"@nocobase/test": "1.6.0-alpha.29", "@nocobase/test": "1.6.0-alpha.29",
"@types/koa": "^2.13.4", "@types/koa": "^2.15.0",
"@types/koa-bodyparser": "^4.3.4", "@types/koa-bodyparser": "^4.3.4",
"@types/lodash": "^4.14.177", "@types/lodash": "^4.14.177",
"@types/node": "*", "@types/node": "*",

View File

@ -55,6 +55,9 @@ export function registerMiddlewares(app: Application, options: ApplicationOption
app.use( app.use(
cors({ cors({
exposeHeaders: ['content-disposition'], exposeHeaders: ['content-disposition'],
origin(ctx) {
return ctx.get('origin');
},
...options.cors, ...options.cors,
}), }),
{ {

View File

@ -25,7 +25,7 @@ const deps: Record<string, string> = {
winston: '3.x', winston: '3.x',
'winston-daily-rotate-file': '4.x', 'winston-daily-rotate-file': '4.x',
koa: '2.x', koa: '2.x',
'@koa/cors': '3.x', '@koa/cors': '5.x',
'@koa/router': '9.x', '@koa/router': '9.x',
multer: '1.x', multer: '1.x',
'@koa/multer': '3.x', '@koa/multer': '3.x',

2065
yarn.lock

File diff suppressed because it is too large Load Diff