Skip to content

Commit

Permalink
[feat] Port 설정, exposedHeaders 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
hellozo0 committed Jan 7, 2024
1 parent 9919a44 commit f9e0015
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/moddy/server/config/cors/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(final CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:5173", "http://localhost:8080")
.allowedOriginPatterns("*")
.allowedMethods(HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.PUT.name(), HttpMethod.DELETE.name())
.allowedHeaders("Authorization", "Content-Type")
.exposedHeaders("Authorization")
.allowCredentials(true)
.maxAge(3000);
}
Expand Down

0 comments on commit f9e0015

Please sign in to comment.