Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
작업 내용
해당 머지 리퀘스트에서는 Spring Web MVC 설정 클래스인 WebMvcConfig에 CORS (Cross-Origin Resource Sharing) 설정을 추가했습니다. 주요 변경사항은 다음과 같습니다:
addCorsMappings 메서드를 오버라이드하여 CORS 설정을 추가했습니다.
출처(allowedOrigins), 허용할 HTTP 메서드(allowedMethods), 허용할 HTTP 헤더(allowedHeaders), 쿠키 인증 요청 허용 여부(allowCredentials), pre-flight 리퀘스트를 캐싱할 시간(maxAge) 등을 설정했습니다.
이를 통해 특정 출처에서의 클라이언트에서 서버로의 요청에 대해 CORS 관련 이슈가 발생하지 않도록 설정이 추가되었습니다.