Skip to content

Commit

Permalink
Update SecurityConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanjaemo authored Mar 25, 2024
1 parent ebed2fe commit c9745d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.addAllowedOriginPattern("http://localhost:8080");
configuration.addAllowedOriginPattern("http://localhost:3000"); // 프론트 쪽에서 허용
configuration.addAllowedOriginPattern("http://balancetalk.kro.kr");
configuration.addAllowedOriginPattern("http://balancetalk.kro.kr"); // 도메인 주소
configuration.addExposedHeader("Authorization");
configuration.addExposedHeader("refreshToken");
configuration.setAllowedMethods(Arrays.asList("GET","POST","PUT","PATCH","DELETE"));
Expand Down

0 comments on commit c9745d3

Please sign in to comment.