Skip to content

refactor: 프론트 새 CORS 설정 추가#177

Merged
yeongsinkeem merged 1 commit intomainfrom
dev
Jan 15, 2026
Merged

refactor: 프론트 새 CORS 설정 추가#177
yeongsinkeem merged 1 commit intomainfrom
dev

Conversation

@yeongsinkeem
Copy link
Copy Markdown
Collaborator

이슈 번호

X

작업 내용

  • 프론트 새 CORS 설정 추가

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @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 Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@yeongsinkeem yeongsinkeem merged commit dbbf06f into main Jan 15, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

이 줄에 중복되고 잘못된 CORS origin 설정이 있습니다. https://frontend-tackit.vercel.app/는 유효한 origin이 아닙니다. Origin은 scheme, hostname, port로 구성되며 경로(/)를 포함하지 않습니다. 또한 https://frontend-tackit.vercel.app이 중복으로 선언되어 있습니다. 아래와 같이 수정하는 것을 권장합니다.

Suggested change
"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"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

로컬 개발 환경을 위한 origin을 추가하는 것은 좋지만, 이렇게 하드코딩된 URL 목록은 유지보수를 어렵게 만들 수 있습니다. 특히 다른 환경(staging, production)에서 다른 설정이 필요할 경우 문제가 될 수 있습니다. application.yml이나 application.properties 같은 설정 파일을 사용하여 이 목록을 외부에서 주입하는 방식을 고려해보세요. 이렇게 하면 코드를 변경하지 않고도 유연하게 설정을 변경할 수 있습니다.

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