fix(hub,web): simplify notification copy configuration

This commit is contained in:
2026-08-05 11:16:17 +08:00
parent 8fc545f72f
commit 896e5d3dac
6 changed files with 166 additions and 114 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ function createWebApp(options: {
const corsOriginOption = corsOrigins.includes('*') ? '*' : corsOrigins
const corsMiddleware = cors({
origin: corsOriginOption,
allowMethods: ['GET', 'POST', 'PATCH', 'DELETE', 'OPTIONS'],
allowMethods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
allowHeaders: ['authorization', 'content-type']
})
app.use('/api/*', corsMiddleware)