Skip to content

Commit

Permalink
fix : cors 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
RTUnu12 committed Oct 25, 2024
1 parent a255898 commit f452bab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
@Bean
protected CorsConfigurationSource corsConfigurationSource() { // 추후 CORS 수정 필요
CorsConfiguration config = new CorsConfiguration();
config.setAllowedOrigins(List.of(jjakkakProperties.getFrontUrl(), "http://localhost:5173")); // 허용할 도메인 명시
config.setAllowedOrigins(List.of(jjakkakProperties.getFrontUrl(), "http://localhost:5173", "http://jjakkak.com", "https://jjakkak.com")); // 허용할 도메인 명시
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
config.setAllowedHeaders(List.of("Authorization", "Content-Type", "Access-Control-Allow-Headers", "Access-Control-Expose-Headers", "_retry"));

Expand Down

0 comments on commit f452bab

Please sign in to comment.