Skip to content

Commit

Permalink
Merge pull request #120 from 0702Yoon/main
Browse files Browse the repository at this point in the history
refactor : cors 에러를 방지한 와일드 카드 도입
  • Loading branch information
0702Yoon authored Aug 20, 2024
2 parents 97bba1d + 254f5ed commit 947830d
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","*");
response.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");
// http 메서드 전체 다 허용
response.setHeader("Access-Control-Max-Age", "3600");
// 프리플라이트(preflight) 요청의 캐시 시간을 정의합니다.
Expand Down

0 comments on commit 947830d

Please sign in to comment.