Skip to content

Commit 565a607

Browse files
authored
fix: default cors methods (#2798)
1 parent bdc9eb9 commit 565a607

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export default async function app(
118118
credentials: true,
119119
cacheControl: 86400,
120120
maxAge: 86400,
121+
methods: ['GET', 'HEAD', 'PUT', 'PATCH', 'POST', 'DELETE'],
121122
});
122123
app.register(cookie, {
123124
secret: process.env.COOKIES_KEY,

0 commit comments

Comments
 (0)