mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 15:39:24 +08:00
Merge branch 'next' into develop
This commit is contained in:
commit
8104e7bd11
@ -8,7 +8,7 @@
|
||||
"@nocobase/build": "1.6.0-alpha.29",
|
||||
"@nocobase/client": "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/lodash": "^4.14.177",
|
||||
"@types/node": "*",
|
||||
|
@ -55,6 +55,9 @@ export function registerMiddlewares(app: Application, options: ApplicationOption
|
||||
app.use(
|
||||
cors({
|
||||
exposeHeaders: ['content-disposition'],
|
||||
origin(ctx) {
|
||||
return ctx.get('origin');
|
||||
},
|
||||
...options.cors,
|
||||
}),
|
||||
{
|
||||
|
@ -25,7 +25,7 @@ const deps: Record<string, string> = {
|
||||
winston: '3.x',
|
||||
'winston-daily-rotate-file': '4.x',
|
||||
koa: '2.x',
|
||||
'@koa/cors': '3.x',
|
||||
'@koa/cors': '5.x',
|
||||
'@koa/router': '9.x',
|
||||
multer: '1.x',
|
||||
'@koa/multer': '3.x',
|
||||
|
Loading…
x
Reference in New Issue
Block a user