Skip to content

Commit

Permalink
Merge pull request #236 from ShallWeProject/fix/232-core-setting
Browse files Browse the repository at this point in the history
fix: cors수정
  • Loading branch information
leeseunghakhello authored Jan 22, 2024
2 parents 5c1faf5 + 612986a commit 4c3848e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/shallwe/global/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public void addCorsMappings(CorsRegistry registry) {
// .allowedOrigins("url:8080", "http://localhost:8080")
.allowedMethods(HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.PATCH.name(), HttpMethod.DELETE.name(), HttpMethod.OPTIONS.name(),
HttpMethod.HEAD.name(), HttpMethod.TRACE.name(), HttpMethod.OPTIONS.name()) // 허용 method
.allowedHeaders("Authorization", "Content-Type"); // 허용 header
.allowedHeaders("Authorization", "Content-Type")// 허용 header
.allowCredentials(true);


}
}

0 comments on commit 4c3848e

Please sign in to comment.