Skip to content

Commit

Permalink
feat: Support CORS for Accept header.
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Jun 14, 2021
1 parent d0df7e8 commit f559397
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void handleRequest(HttpServletRequest request, HttpServletResponse respon
@Override
protected void doOptions(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setHeader("Access-Control-Allow-Origin", "*");
response.setHeader("Access-Control-Allow-Headers", "Content-Type");
response.setHeader("Access-Control-Allow-Headers", "Accept, Content-Type");
response.setStatus(HttpServletResponse.SC_OK);
}

Expand Down

0 comments on commit f559397

Please sign in to comment.