Skip to content

Commit 45fb1f0

Browse files
authored
Merge pull request #142 from PerFumeOnMe/hotfix/security
[Hotfix] CORS 허용 Origin에 배포 경로 추가
2 parents ba3bc42 + 960d4b4 commit 45fb1f0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/PerfumeOnMe/spring/security/SecurityConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
7373
public CorsConfigurationSource corsConfigurationSource() {
7474
CorsConfiguration config = new CorsConfiguration();
7575
config.setAllowedOrigins(List.of("http://localhost:8080", "http://localhost:5000", "http://52.198.172.96:8080",
76-
"http://localhost:5173")); // web 배포 주소 포함해야 함
76+
"http://localhost:5173", "https://frontend-git-main-jskim6335-5256s-projects.vercel.app:443",
77+
"https://52.198.172.96:443"));
7778
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"));
7879
config.setAllowedHeaders(List.of("Authorization", "Refresh-Token", "Content-Type"));
7980
config.setAllowCredentials(true);

0 commit comments

Comments
 (0)