Skip to content

Commit 8e350e8

Browse files
authored
Merge pull request #32 from AI-Tutor-2024/develop
Develop
2 parents b9d9791 + ff4b51d commit 8e350e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/example/ai_tutor/global/config/security/SecurityConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,11 @@ public CorsConfigurationSource corsConfigurationSource() {
106106
// 모든 출처 허용
107107
configuration.addAllowedOriginPattern("*");
108108
configuration.addAllowedOrigin("https://www.ai-tutor.co.kr");
109+
configuration.addAllowedOrigin("http://localhost:3000");
109110
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
110111
configuration.setAllowedHeaders(List.of("*"));
111112
configuration.setAllowCredentials(true);
113+
112114
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
113115
source.registerCorsConfiguration("/**", configuration);
114116
return source;

0 commit comments

Comments
 (0)