Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
public UrlBasedCorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();

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

configuration.setAllowCredentials(true);
Expand Down
2 changes: 1 addition & 1 deletion back/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ logging:
custom:
site:
cookieDomain: "api.jobmate.info" # 도메인으로 변경
frontUrl: "http://localhost:3000" # 프론트엔드 도메인으로 변경
frontUrl: "https://jbmate.vercel.app" # 프론트엔드 도메인으로 변경
backUrl: "https://api.jobmate.info" # HTTPS로 변경
cookie:
httpOnly: true
Expand Down