Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("http://localhost:3000", "https://*.woorifisa.site")
.allowedOriginPatterns("http://localhost:3000", "https://www.wooricodeshare.com")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true) // 쿠키 및 인증 헤더 허용
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void configureMessageBroker(MessageBrokerRegistry registry) {
public void registerStompEndpoints(StompEndpointRegistry registry) {
// 클라이언트가 WebSocket 서버에 연결할 엔드포인트 설정
registry.addEndpoint("/ws")
.setAllowedOriginPatterns("http://localhost:3000", "https://*.woorifisa.site")
.setAllowedOriginPatterns("http://localhost:3000", "https://www.wooricodeshare.com")
.withSockJS(); // SockJS 사용 설정 (WebSocket 미지원 브라우저에서도 폴백 가능하도록)
}

Expand Down
Loading