Skip to content

Commit 534f473

Browse files
committed
fix(be)
1 parent 206eb95 commit 534f473

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/src/main/java/com/deliveranything/global/config/WebSocketConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.springframework.messaging.support.ChannelInterceptor;
2828
import org.springframework.messaging.support.MessageHeaderAccessor;
2929
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
30+
import org.springframework.security.config.annotation.web.socket.EnableWebSocketSecurity;
3031
import org.springframework.security.core.Authentication;
3132
import org.springframework.security.core.GrantedAuthority;
3233
import org.springframework.security.core.userdetails.UserDetails;
@@ -37,6 +38,7 @@
3738
@Slf4j
3839
@Configuration
3940
@EnableWebSocketMessageBroker
41+
@EnableWebSocketSecurity
4042
@RequiredArgsConstructor
4143
public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
4244

0 commit comments

Comments
 (0)