Skip to content

Commit

Permalink
fix: cors origin 설정 변경 (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkenhw authored Aug 3, 2023
1 parent 7eca4e3 commit 2d85179
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public class CorsFilter extends OncePerRequestFilter {
@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
response.setHeader("Access-Control-Allow-Origin", request.getHeader("Origin"));
response.setHeader("Access-Control-Allow-Origin", "*");
response.setHeader("Access-Control-Allow-Credentials", "true");
response.setHeader("Access-Control-Allow-Methods", "*");
response.setHeader("Access-Control-Max-Age", "3600");
Expand Down

0 comments on commit 2d85179

Please sign in to comment.