Skip to content

Commit

Permalink
refactor: add allowed methods in cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhonatanmizu committed Jun 19, 2024
1 parent d4c537c commit 88096fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ server.register(swaggerUi, {
server.register(helmet);
server.register(cors, {
origin: "*",
methods: "GET,HEAD,PUT,PATCH,POST,DELETE",
});

server.register(analyzeRoutes);
Expand Down

0 comments on commit 88096fa

Please sign in to comment.