Skip to content

Commit

Permalink
refactor: cors 설정 변경 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
birdieHyun committed Jun 18, 2023
1 parent 8c0fefb commit 1a6ce84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/main/java/com/secondhand/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
public class WebConfig implements WebMvcConfigurer {

private final JwtUtil jwtUtil;

// TODO : 배포시 allowedOrigins "http://3.37.72.34" 로 변경
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("*");
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH");
}

@Override
Expand Down

0 comments on commit 1a6ce84

Please sign in to comment.