From 30c050c1c7ace80b4d0e88508e503c6b97649ec1 Mon Sep 17 00:00:00 2001 From: funa-tk <1781263+funa-tk@users.noreply.github.com> Date: Wed, 6 Jul 2022 11:42:42 +0900 Subject: [PATCH] [fix] add Access-Control-Allow-Private-Network medthod in CORS --- src/main/java/core/packetproxy/common/ConfigHttpServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/core/packetproxy/common/ConfigHttpServer.java b/src/main/java/core/packetproxy/common/ConfigHttpServer.java index 0a32292..afd9722 100644 --- a/src/main/java/core/packetproxy/common/ConfigHttpServer.java +++ b/src/main/java/core/packetproxy/common/ConfigHttpServer.java @@ -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; }