Skip to content

Commit

Permalink
fix(routes): add HEAD to cors allowed methods (#1105)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Nov 1, 2022
1 parent f75b15e commit ec5b850
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/admin/healthcheck/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function route(server, options) {
// Enable CORS if options passed
.register(cors, {
...options.cors,
methods: ["GET"],
methods: ["GET", "HEAD"],
});

server.route({
Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/openapi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function route(server, options) {
// Enable CORS if options passed
.register(cors, {
...options.cors,
methods: ["GET"],
methods: ["GET", "HEAD"],
});

server.route({
Expand Down

0 comments on commit ec5b850

Please sign in to comment.