diff --git a/src/main/java/com/beside/startrail/common/configuration/SecurityConfiguration.java b/src/main/java/com/beside/startrail/common/configuration/SecurityConfiguration.java index afdc668..444a6cf 100644 --- a/src/main/java/com/beside/startrail/common/configuration/SecurityConfiguration.java +++ b/src/main/java/com/beside/startrail/common/configuration/SecurityConfiguration.java @@ -4,7 +4,7 @@ import org.springframework.context.annotation.Configuration; import org.springframework.security.config.web.server.ServerHttpSecurity; import org.springframework.security.web.server.SecurityWebFilterChain; -import org.springframework.security.web.server.context.NoOpServerSecurityContextRepository; +import org.springframework.security.web.server.savedrequest.NoOpServerRequestCache; @Configuration public class SecurityConfiguration { @@ -21,7 +21,9 @@ public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity serverHt .authorizeExchange(authorizeExchangeSpec -> authorizeExchangeSpec.anyExchange().permitAll() ) - .securityContextRepository(NoOpServerSecurityContextRepository.getInstance()) + .requestCache() + .requestCache(NoOpServerRequestCache.getInstance()) + .and() .build(); } } \ No newline at end of file