Skip to content

Commit

Permalink
fix: cors allowed origin을 localhost:*에서 localhost:5173으로 변경 (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldentrash authored Aug 20, 2024
1 parent 218cf2a commit 334abac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
HttpServletRequest request = (HttpServletRequest) req;
HttpServletResponse response = (HttpServletResponse) res;

response.setHeader("Access-Control-Allow-Origin", "http://localhost:*");
response.setHeader("Access-Control-Allow-Origin", "http://localhost:5173");
response.setHeader("Access-Control-Allow-Credentials", "true");
response.setHeader("Access-Control-Allow-Methods","GET, POST, PUT, DELETE, PATCH, OPTIONS");
response.setHeader("Access-Control-Max-Age", "3600");
Expand Down

0 comments on commit 334abac

Please sign in to comment.