Skip to content

Commit

Permalink
refactor: CORS 설정 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eom-tae-in committed Aug 16, 2024
1 parent 87ba526 commit c192ffc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ protected void doFilterInternal(final HttpServletRequest request,
final FilterChain filterChain) throws ServletException, IOException {
response.setHeader("Access-Control-Allow-Origin", ALLOWED_ORIGIN_ADDRESS);
response.setHeader("Access-Control-Allow-Credentials", "true");
response.setHeader("Access-Control-Allow-Methods", "*");
response.setHeader("Access-Control-Allow-Methods", "GET, POST, PATCH, DELETE, OPTIONS");
response.setHeader("Access-Control-Max-Age", "3600");
response.setHeader("Access-Control-Allow-Headers", "*");
response.setHeader("Access-Control-Allow-Headers",
"Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers, Authorization");
ContentCachingRequestWrapper contentCachingRequestWrapper = new ContentCachingRequestWrapper(request);
ContentCachingResponseWrapper contentCachingResponseWrapper = new ContentCachingResponseWrapper(response);

Expand Down

0 comments on commit c192ffc

Please sign in to comment.