Skip to content

Commit

Permalink
feat(runtime): add Access-Control-Max-Age to cors options (labring#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwhite authored Oct 30, 2023
1 parent 27b0587 commit c4b79fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtimes/nodejs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ app.use(cors({
methods: '*',
exposedHeaders: '*',
credentials: true,
maxAge: 86400,
}))

app.use(express.json({ limit: Config.REQUEST_LIMIT_SIZE }) as any)
Expand Down

0 comments on commit c4b79fb

Please sign in to comment.