Skip to content

Commit

Permalink
[fix] add Access-Control-Allow-Private-Network medthod in CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
funa-tk committed Jul 6, 2022
1 parent e3f906f commit 30c050c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public Response serve(IHTTPSession session) {
res.addHeader("Access-Control-Allow-Origin", "*");
res.addHeader("Access-Control-Allow-Headers", "Authorization,Content-Type");
res.addHeader("Access-Control-Allow-Methods", "GET,POST,OPTIONS");
res.addHeader("Access-Control-Allow-Private-Network", "true");
res.addHeader("Access-Control-Max-Age", "86400");
return res;
}
Expand Down

0 comments on commit 30c050c

Please sign in to comment.