Skip to content

Commit

Permalink
fix: cors 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
YongGoose committed Nov 1, 2023
1 parent bff19ff commit e2aaacd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/WithYou/global/config/WebSecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ public class WebSecurityConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://10.114.10.20:3000", "http://192.168.0.26:3000", "http://172.20.10.2:3000/") // 허용할 도메인(Origin)을 명시적으로 지정
.allowedOrigins("http://10.114.10.20:3000", "http://192.168.0.26:3000",
"http://172.20.10.2:3000") // 허용할 도메인(Origin)을 명시적으로 지정
.allowedHeaders("*")
.exposedHeaders("accessToken", "refreshToken", "validation")
.allowedMethods(
Expand Down

0 comments on commit e2aaacd

Please sign in to comment.