Skip to content

Commit

Permalink
deploy: CORS 요청 메서드 한정
Browse files Browse the repository at this point in the history
  • Loading branch information
GitJIHO committed Nov 15, 2024
1 parent 8c2cc8d commit c1786fb
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ public CorsFilter corsFilter() {
config.addAllowedOriginPattern(kakaoProperties.frontUri());
config.addAllowedOriginPattern(DEV_SERVER_URL);

config.addAllowedMethod("*");
config.addAllowedMethod(HttpMethod.POST);
config.addAllowedMethod(HttpMethod.GET);
config.addAllowedMethod(HttpMethod.PUT);
config.addAllowedMethod(HttpMethod.DELETE);
config.addAllowedMethod(HttpMethod.OPTIONS);

config.addAllowedHeader("*");
config.addExposedHeader("Authorization");

Expand Down

0 comments on commit c1786fb

Please sign in to comment.