Skip to content

Commit

Permalink
Merge pull request #121 from 0702Yoon/main
Browse files Browse the repository at this point in the history
refactor : access control allow methods patch 추가
  • Loading branch information
0702Yoon authored Aug 20, 2024
2 parents 947830d + f9c8ddb commit 0c3cb56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
// CORS 허용한 Origin
response.setHeader("Access-Control-Allow-Credentials", "true");
// 자격이 포함된 요청 받기
response.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");
response.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, PATCH,DELETE, OPTIONS");
// http 메서드 전체 다 허용
response.setHeader("Access-Control-Max-Age", "3600");
// 프리플라이트(preflight) 요청의 캐시 시간을 정의합니다.
Expand Down

0 comments on commit 0c3cb56

Please sign in to comment.