refactor: 프론트 새 CORS 설정 추가#177
Conversation
Summary of ChangesHello @yeongsinkeem, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 PR은 프론트엔드 개발 환경을 지원하기 위해 백엔드의 CORS(Cross-Origin Resource Sharing) 설정을 업데이트합니다. 기존 허용 오리진 목록에 'http://localhost:3000'을 추가하여, 프론트엔드 애플리케이션이 로컬 개발 환경(포트 3000)에서 백엔드와 원활하게 통신할 수 있도록 합니다. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
이번 PR은 프론트엔드 로컬 개발 환경을 위한 CORS 설정을 추가하는 변경사항을 담고 있습니다. 코드 리뷰 결과, CORS origin 설정에 중복되고 잘못된 형식이 포함된 부분을 발견하여 수정을 제안했습니다. 또한, 현재 하드코딩된 URL 목록을 향후 유지보수성 향상을 위해 설정 파일로 분리하여 관리하는 방안을 제안합니다. 전반적으로 간단한 설정 추가이지만, 이를 계기로 코드의 정확성과 유지보수성을 높일 수 있는 좋은 기회라고 생각합니다.
| @@ -40,7 +40,7 @@ CorsConfigurationSource corsConfigurationSource() { | |||
| "https://tackit.site", | |||
| "https://www.tackit.site", | |||
| "https://frontend-tackit.vercel.app", "https://frontend-tackit.vercel.app/", | |||
There was a problem hiding this comment.
이 줄에 중복되고 잘못된 CORS origin 설정이 있습니다. https://frontend-tackit.vercel.app/는 유효한 origin이 아닙니다. Origin은 scheme, hostname, port로 구성되며 경로(/)를 포함하지 않습니다. 또한 https://frontend-tackit.vercel.app이 중복으로 선언되어 있습니다. 아래와 같이 수정하는 것을 권장합니다.
| "https://frontend-tackit.vercel.app", "https://frontend-tackit.vercel.app/", | |
| "https://frontend-tackit.vercel.app", |
| "https://www.tackit.site", | ||
| "https://frontend-tackit.vercel.app", "https://frontend-tackit.vercel.app/", | ||
| "http://localhost:3005" | ||
| "http://localhost:3005", "http://localhost:3000" |
이슈 번호
작업 내용