Skip to content

Commit 053f081

Browse files
authored
Merge pull request #95 from kjiyun/chat
#94 Fix: 웹소켓 CORS 설정 변경
2 parents 8b13ea4 + 081af5f commit 053f081

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/memesphere/global/config/StompWebSocketConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class StompWebSocketConfig implements WebSocketMessageBrokerConfigurer {
1818
@Override
1919
public void registerStompEndpoints(StompEndpointRegistry registry) {
2020
registry.addEndpoint("/ws") //socket 연결 url: ws://localhost:8008/ws
21-
.setAllowedOrigins("*")
21+
.setAllowedOriginPatterns("*")
2222
.withSockJS();
2323
}
2424

0 commit comments

Comments
 (0)