Skip to content

Commit 975e524

Browse files
committed
[feat] : web conifg 설정
1 parent 809ac68 commit 975e524

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

  • src/main/java/com/oreo/finalproject_5re5_be/global/config

src/main/java/com/oreo/finalproject_5re5_be/global/config/WebConfig.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@ public class WebConfig implements WebMvcConfigurer {
1010
@Override
1111
public void addCorsMappings(CorsRegistry registry) {
1212
registry.addMapping("/**")
13-
.allowedOrigins("https://5re5park.site") // 정확한 도메인 설정
13+
.allowedOrigins(
14+
"https://client.5re5park.site",
15+
"https://5re5park.site",
16+
"https://www.5re5park.site",
17+
"http://5re5park.site:8080",
18+
"http://localhost:8080",
19+
"http://localhost:5173",
20+
"http://127.0.0.1:8080",
21+
"http://127.0.0.1:5173") // 정확한 도메인 설정
1422
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
1523
.allowCredentials(true) // 쿠키와 인증 정보 허용
1624
.maxAge(3600);

0 commit comments

Comments
 (0)