Skip to content

Commit

Permalink
Update SecurityConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Nonononoki committed Sep 25, 2023
1 parent 1761c32 commit 74b8dce
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ SecurityFilterChain filterChain(HttpSecurity http) throws Exception {

http.sessionManagement().maximumSessions(10).expiredSessionStrategy(getSessionInformationExpiredStrategy())
.sessionRegistry(sessionRegistry());
http.securityContext((securityContext) -> securityContext.requireExplicitSave(false));

http.csrf().disable();

if (env.acceptsProfiles(Profiles.of("prod"))) {
Expand Down

0 comments on commit 74b8dce

Please sign in to comment.