We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7911fe commit 93f6f02Copy full SHA for 93f6f02
backend/src/main/java/io/f1/backend/global/config/CorsConfig.java
@@ -12,7 +12,9 @@ public class CorsConfig {
12
public CorsConfigurationSource corsConfigurationSource() {
13
CorsConfiguration config = new CorsConfiguration();
14
15
- config.addAllowedOriginPattern("*");
+ config.addAllowedOrigin("http://localhost:3000"); // 개발 환경
16
+ config.addAllowedOrigin("http://brainrace.duckdns.org"); // 배포 환경
17
+
18
config.addAllowedHeader("*");
19
config.addAllowedMethod("*");
20
config.setAllowCredentials(true);
0 commit comments