Skip to content

fix: CORS 허용 origin에 Vercel 배포 도메인 추가 #302

Description

@jongjunn

버그 설명

SecurityConfig CORS 설정에 localhost:3000만 허용되어 있어, EC2 배포 환경에서 프론트엔드(hard-click-front-end.vercel.app)의 API 요청이 CORS로 차단됨

원인

configuration.setAllowedOrigins(Arrays.asList("http://localhost:3000"));

해결 방법

Vercel 배포 도메인을 허용 origin에 추가

체크리스트

  • 로컬 개발 환경(localhost:3000) 유지
  • Vercel 배포 도메인(https://hard-click-front-end.vercel.app) 추가

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions