Skip to content

Commit

Permalink
Merge pull request #32 from HandTris/#12
Browse files Browse the repository at this point in the history
refactor: StompConfig SockJS ์—”๋“œํฌ์ธํŠธ์— CORS ์„ค์ • ์ถ”๊ฐ€
  • Loading branch information
seonghoo1217 authored Jun 21, 2024
2 parents 291c882 + fe3d947 commit b35fd35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public void configureMessageBroker(MessageBrokerRegistry config) {
@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
// WebSocket ์—”๋“œํฌ์ธํŠธ๋ฅผ ๋“ฑ๋กํ•˜๊ณ  SockJS๋ฅผ ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.
registry.addEndpoint("/tetris").withSockJS();
registry.addEndpoint("/tetris").setAllowedOriginPatterns("*").withSockJS();
}
}

0 comments on commit b35fd35

Please sign in to comment.