Skip to content

Commit

Permalink
#594 [feat] dev-local url cors open
Browse files Browse the repository at this point in the history
#594 [feat] dev-local url cors open
  • Loading branch information
sohyundoh authored Dec 19, 2024
2 parents ed70c9d + ad35268 commit e6fdd99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion module-api/src/main/java/com/mile/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public class WebConfig implements WebMvcConfigurer {
@Value("${client.develop}")
private String clientDevelop;

@Value("${client.dev-local}")
private String clientDevLocal;

@Value("${client.deploy}")
private String clientDeploy;

Expand All @@ -55,7 +58,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins(clientLocal, clientDeploy, serverLocalSet1, serverLocalSet2, serverDevelop, serverDeploy, clientDevelop)
.allowedOrigins(clientLocal, clientDeploy, serverLocalSet1, serverLocalSet2, serverDevelop, serverDeploy, clientDevelop, clientDevLocal)
.allowedMethods("GET", "POST", "DELETE", "PUT", "PATCH", "OPTIONS")
.allowCredentials(true)
.maxAge(3000);
Expand Down

0 comments on commit e6fdd99

Please sign in to comment.