Skip to content

Commit da3ac3f

Browse files
authored
[fix] Front Port 수정
1 parent 32b1bf2 commit da3ac3f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backend/src/main/java/com/back/global/security/CustomAuthenticationFilter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ private void addCookie(
188188
}
189189

190190
private void addCorsHeaders(HttpServletResponse response) {
191-
response.setHeader("Access-Control-Allow-Origin", "http://localhost:5173"); //TODO 하드 코딩 제거
191+
response.setHeader("Access-Control-Allow-Origin",
192+
siteProperties.getFrontUrl()); // TODO: 개발 환경에서 다중 origin 허용 가능한지 찾아보기
192193
response.setHeader("Access-Control-Allow-Credentials", "true");
193194
response.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, PATCH, OPTIONS");
194195
response.setHeader("Access-Control-Allow-Headers", "Content-Type, Authorization");

0 commit comments

Comments
 (0)