Skip to content

Commit

Permalink
refactor: CORS의 Access-Control-Allow-Headers 설정 추가 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
eom-tae-in committed Aug 19, 2024
1 parent 4de92ea commit f9ab206
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ protected void doFilterInternal(final HttpServletRequest request,
response.setHeader("Access-Control-Allow-Credentials", "true");
response.setHeader("Access-Control-Allow-Methods", "GET, POST, PATCH, DELETE, OPTIONS");
response.setHeader("Access-Control-Max-Age", "3600");
response.setHeader("Access-Control-Allow-Headers", "Authorization, Content-Type, Accept");
response.setHeader("Access-Control-Allow-Headers",
"Origin, X-Requested-With, Content-Type, Accept, Authorization, x-xsrf-token");
response.setHeader("Access-Control-Expose-Headers", "Set-Cookie");
ContentCachingRequestWrapper contentCachingRequestWrapper = new ContentCachingRequestWrapper(request);
ContentCachingResponseWrapper contentCachingResponseWrapper = new ContentCachingResponseWrapper(response);
Expand Down

0 comments on commit f9ab206

Please sign in to comment.