Skip to content

Commit c94c802

Browse files
committed
fix: addCorsHeaders 수정
1 parent 59b3983 commit c94c802

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

190190
private void addCorsHeaders(HttpServletResponse response) {
191-
response.setHeader("Access-Control-Allow-Origin", siteProperties.getFrontUrl());
191+
response.setHeader("Access-Control-Allow-Origin", "http://localhost:5173"); //TODO 하드 코딩 제거
192192
response.setHeader("Access-Control-Allow-Credentials", "true");
193193
response.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, PATCH, OPTIONS");
194194
response.setHeader("Access-Control-Allow-Headers", "Content-Type, Authorization");

0 commit comments

Comments
 (0)