Skip to content

Commit

Permalink
fix: Cors URL 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
dnjsqls5973 committed Nov 1, 2023
2 parents 5d0754a + e2aaacd commit 749531d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/WithYou/global/config/WebSecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class WebSecurityConfig implements WebMvcConfigurer {
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","http://192.168.0.11:3000") // 허용할 도메인(Origin)을 명시적으로 지정
"http://172.20.10.2:3000", "http://192.168.0.11:3000") // 허용할 도메인(Origin)을 명시적으로 지정
.allowedHeaders("*")
.exposedHeaders("accessToken", "refreshToken", "validation")
.allowedMethods(
Expand Down

0 comments on commit 749531d

Please sign in to comment.