Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature : CORS cookie 설정 #87

Merged
merged 2 commits into from
Feb 6, 2024
Merged

Conversation

Qbeom0925
Copy link
Member

작업 내용

해당 머지 리퀘스트에서는 Spring Web MVC 설정 클래스인 WebMvcConfig에 CORS (Cross-Origin Resource Sharing) 설정을 추가했습니다. 주요 변경사항은 다음과 같습니다:

addCorsMappings 메서드를 오버라이드하여 CORS 설정을 추가했습니다.
출처(allowedOrigins), 허용할 HTTP 메서드(allowedMethods), 허용할 HTTP 헤더(allowedHeaders), 쿠키 인증 요청 허용 여부(allowCredentials), pre-flight 리퀘스트를 캐싱할 시간(maxAge) 등을 설정했습니다.
이를 통해 특정 출처에서의 클라이언트에서 서버로의 요청에 대해 CORS 관련 이슈가 발생하지 않도록 설정이 추가되었습니다.

@Qbeom0925 Qbeom0925 self-assigned this Feb 6, 2024
Copy link

sonarcloud bot commented Feb 6, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@Qbeom0925 Qbeom0925 merged commit 695e3ee into develop Feb 6, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant