mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix(hub,web): simplify notification copy configuration
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user