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 26, 2024
1 parent 4461614 commit 20b1544
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ CorsConfigurationSource corsConfigurationSource() {
configuration.addAllowedOriginPattern("http://localhost:8080");
configuration.addAllowedOriginPattern("http://localhost:3000"); // 프론트 쪽에서 허용
configuration.addAllowedOriginPattern("https://balancetalk.kro.kr"); // 도메인 주소
configuration.addAllowedOriginPattern("https://balancetalk.kro.kr/email/request"); // 도메인 주소
configuration.addExposedHeader("Authorization");
configuration.addExposedHeader("refreshToken");
configuration.setAllowedHeaders(Arrays.asList("*")); // header에 모두 요청 가능
Expand Down

0 comments on commit 20b1544

Please sign in to comment.