Skip to content

Commit

Permalink
[fix] Access-Control-Allow-Private-Network required in OPTIONS respon…
Browse files Browse the repository at this point in the history
…se header
  • Loading branch information
funa-tk committed May 17, 2023
1 parent 9b204bf commit b90246c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/core/packetproxy/common/TokenHttpServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public Response serve(IHTTPSession session) {
res.addHeader("Access-Control-Allow-Headers", "Content-Type");
res.addHeader("Access-Control-Allow-Methods", "POST,OPTIONS");
res.addHeader("Access-Control-Max-Age", "86400");
res.addHeader("Access-Control-Allow-Private-Network", "true");
return res;
}

Expand Down

0 comments on commit b90246c

Please sign in to comment.