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 4bb2ee2..afdc668 100644 --- a/src/main/java/com/beside/startrail/common/configuration/SecurityConfiguration.java +++ b/src/main/java/com/beside/startrail/common/configuration/SecurityConfiguration.java @@ -4,6 +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; @Configuration public class SecurityConfiguration { @@ -20,6 +21,7 @@ public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity serverHt .authorizeExchange(authorizeExchangeSpec -> authorizeExchangeSpec.anyExchange().permitAll() ) + .securityContextRepository(NoOpServerSecurityContextRepository.getInstance()) .build(); } } \ No newline at end of file