Skip to content

Commit

Permalink
[BE] fix: CORS에서 모든 헤더를 열어주는 것으로 수정 (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
70825 authored Aug 1, 2023
1 parent 827a7d6 commit c94f539
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/src/main/java/com/funeat/common/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import java.util.List;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.http.HttpHeaders;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
Expand Down Expand Up @@ -37,6 +36,6 @@ public void addCorsMappings(final CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("*")
.exposedHeaders(HttpHeaders.LOCATION);
.allowedHeaders("*");
}
}

0 comments on commit c94f539

Please sign in to comment.