Skip to content

Commit 189c0ca

Browse files
committed
웹소켓
1 parent d75941d commit 189c0ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/oronaminc/join/member/security/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
6161
public CorsConfigurationSource corsConfigurationSource() {
6262
CorsConfiguration configuration = new CorsConfiguration();
6363
configuration.setAllowCredentials(true);
64-
configuration.setAllowedOriginPatterns(List.of("*"));
64+
configuration.setAllowedOriginPatterns(List.of("http://localhost:5173"));
6565
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
6666
configuration.setAllowedHeaders(List.of("*"));
6767

src/main/java/com/oronaminc/join/websocket/api/QuestionWebsocketController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public QuestionCreateResponse createQuestion(
4343
Principal principal
4444
) {
4545
log.debug("수신한 메시지 = {}", request.content());
46-
46+
log.debug("principal = {}", principal);
4747
MemberDetails memberDetails = (MemberDetails)((Authentication)principal).getPrincipal();
4848
Long memberId = Long.valueOf(memberDetails.getId());
4949

0 commit comments

Comments
 (0)