Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v1' into v1
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby committed May 6, 2019
2 parents 4bd7f8f + ff4876b commit ccb712d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/run/halo/app/config/HaloConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ public FilterRegistrationBean<ApiAuthenticationFilter> apiAuthenticationFilter(H
ObjectMapper objectMapper,
OptionService optionService) {
ApiAuthenticationFilter apiFilter = new ApiAuthenticationFilter(haloProperties, optionService);
apiFilter.addExcludeUrlPatterns(
"/api/content/*/comments",
"/api/content/*/comments/*"
);

DefaultAuthenticationFailureHandler failureHandler = new DefaultAuthenticationFailureHandler();
failureHandler.setProductionEnv(haloProperties.isProductionEnv());
Expand Down

0 comments on commit ccb712d

Please sign in to comment.