Skip to content

Commit 583119c

Browse files
committed
chore:cors설정
1 parent a5b9d23 commit 583119c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

back/src/main/java/com/back/global/security/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
5151
public UrlBasedCorsConfigurationSource corsConfigurationSource() {
5252
CorsConfiguration configuration = new CorsConfiguration();
5353

54-
configuration.setAllowedOrigins(List.of("http://localhost:3000"));
54+
configuration.setAllowedOrigins(List.of("http://localhost:3000", "https://jbmate.vercel.app"));
5555
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
5656

5757
configuration.setAllowCredentials(true);

back/src/main/resources/application-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ logging:
3434
custom:
3535
site:
3636
cookieDomain: "api.jobmate.info" # 도메인으로 변경
37-
frontUrl: "http://localhost:3000" # 프론트엔드 도메인으로 변경
37+
frontUrl: "https://jbmate.vercel.app" # 프론트엔드 도메인으로 변경
3838
backUrl: "https://api.jobmate.info" # HTTPS로 변경
3939
cookie:
4040
httpOnly: true

0 commit comments

Comments
 (0)