Skip to content

Commit 8ca92cb

Browse files
committed
refactor: 프론트엔드 배포 도메인 CORS 허용
1 parent cf5d132 commit 8ca92cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/es/princip/ringus/infra/config/SecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public PasswordEncoder passwordEncoder() {
4040
@Bean
4141
public CorsConfigurationSource corsConfigurationSource() {
4242
CorsConfiguration config = new CorsConfiguration();
43-
config.setAllowedOriginPatterns(List.of("http://localhost:5178"));
43+
config.setAllowedOriginPatterns(List.of("http://localhost:5178", "https://ringus.my"));
4444
config.setAllowedMethods(List.of("GET", "POST", "PATCH", "DELETE", "OPTIONS"));
4545
config.setAllowedHeaders(List.of("Authorization", "Content-Type"));
4646
config.setExposedHeaders(List.of("Authorization"));

0 commit comments

Comments
 (0)