Skip to content

Commit

Permalink
oasp#689 fixing h2 console
Browse files Browse the repository at this point in the history
  • Loading branch information
jdiazgon committed Oct 4, 2018
1 parent d6bb427 commit e634164
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ public void configure(HttpSecurity http) throws Exception {
// register login and logout filter that handles rest logins
.addFilterAfter(getSimpleRestAuthenticationFilter(), BasicAuthenticationFilter.class)
.addFilterAfter(getSimpleRestLogoutFilter(), LogoutFilter.class);

// uncomment these lines to enable h2 console
// http.csrf().disable();
// http.headers().frameOptions().disable();

if (this.corsEnabled) {
http.addFilterBefore(getCorsFilter(), CsrfFilter.class);
Expand Down

0 comments on commit e634164

Please sign in to comment.