Skip to content
Permalink
Browse files Browse the repository at this point in the history
#000 - Add missing Content-Type check
  • Loading branch information
arvindsv committed Feb 19, 2021
1 parent ae56189 commit 7d0baab
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -65,7 +65,9 @@ public String controllerBasePath() {
public void setupRoutes() {
path(controllerBasePath(), () -> {
before("", mimeType, this::setContentType);

before("/*", mimeType, this::setContentType);
before("", mimeType, this::verifyContentType);
before("/*", mimeType, this::verifyContentType);

// change the line below to enable appropriate security
before("", mimeType, this.apiAuthenticationHelper::checkAdminUserAnd403);
Expand Down

0 comments on commit 7d0baab

Please sign in to comment.