Skip to content

Commit

Permalink
Allow the OPTIONS method for static resources
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Apr 19, 2023
1 parent bc8fb84 commit 703ae09
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public void accept(Route route) {
// No other HTTP methods should be used
route.method(HttpMethod.GET);
route.method(HttpMethod.HEAD);
route.method(HttpMethod.OPTIONS);
for (Handler<RoutingContext> i : handlers) {
route.handler(i);
}
Expand Down

0 comments on commit 703ae09

Please sign in to comment.