Skip to content

Commit

Permalink
Update SecurityConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
urviljoshi authored Mar 26, 2020
1 parent a64b7ab commit 37a7381
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.core.annotation.Order;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.ProviderManager;
Expand Down Expand Up @@ -93,6 +92,7 @@ protected void configure(HttpSecurity http) throws Exception {
http.addFilterBefore(authFilter(), UsernamePasswordAuthenticationFilter.class);
http.addFilterBefore(new CorsFilter(), AuthFilter.class);
http.headers().cacheControl();
http.headers().frameOptions().sameOrigin();
}

}
Expand All @@ -105,4 +105,4 @@ public void commence(HttpServletRequest httpServletRequest, HttpServletResponse
httpServletResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, "UNAUTHORIZED");
}

}
}

0 comments on commit 37a7381

Please sign in to comment.