From d16d91872d2c6fd8b8c99893163b4d43c313ded8 Mon Sep 17 00:00:00 2001 From: isanghaessi Date: Sun, 11 Feb 2024 01:37:00 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20ssl=20=EC=BA=90=EC=8B=9C=20=EB=B9=84?= =?UTF-8?q?=ED=99=9C=EC=84=B1=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/configuration/SecurityConfiguration.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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