Skip to content

Commit 30f071c

Browse files
committed
🔧 chore: 프론트엔드 로컬환경 CORS origin 설정 추가
1 parent 3c89ab6 commit 30f071c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/src/main/java/io/f1/backend/global/config/CorsConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88

99
@Configuration
1010
public class CorsConfig {
11+
1112
@Bean
1213
public CorsConfigurationSource corsConfigurationSource() {
1314
CorsConfiguration config = new CorsConfiguration();
1415

16+
config.addAllowedOrigin("http://localhost:3000");
1517
config.addAllowedOrigin("https://brainrace.duckdns.org");
1618

1719
config.addAllowedHeader("*");

0 commit comments

Comments
 (0)