Skip to content

Commit

Permalink
Merge pull request #71 from SWM-Flash/hotfix/FLASH-286-dev-cors-error
Browse files Browse the repository at this point in the history
개발 서버에서 cors method를 전부 허용하도록 수정
  • Loading branch information
wonyangs authored Oct 4, 2024
2 parents 133f60f + af03a03 commit 5a75a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/first/flash/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public WebMvcConfigurer corsConfigurer() {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("*")
.allowedMethods("GET")
.allowedMethods("*")
.allowedHeaders("*")
.allowCredentials(true);
}
Expand Down

0 comments on commit 5a75a4d

Please sign in to comment.