Skip to content

Commit

Permalink
chore: code smell 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Shin-Jae-Yoon committed Nov 14, 2023
1 parent 816d6b0 commit 68dcff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/moabam/global/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ public class WebConfig implements WebMvcConfigurer {
private static final String ALLOW_ORIGIN_PATTERN = "[a-z]+\\.moabam.com";

@Value("${allow}")
private String ALLOW_LOCAL_HOST;
private String allowLocalHost;

@Override
public void addCorsMappings(final CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns(ALLOW_ORIGIN_PATTERN, ALLOW_LOCAL_HOST)
.allowedOriginPatterns(ALLOW_ORIGIN_PATTERN, allowLocalHost)
.allowedMethods(ALLOWED_METHOD_NAMES.split(","))
.allowedHeaders("*")
.allowCredentials(true)
Expand Down

0 comments on commit 68dcff9

Please sign in to comment.