shawenguan 1 year ago
parent
commit
37310520dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Scripts/hbcpre/hbcpreHelper.js

+ 1 - 1
Scripts/hbcpre/hbcpreHelper.js

@@ -67,13 +67,13 @@ async function Main() {
 }
 
 function checkHandleRequest() {
+    handleHeaders();
     const request = magicJS.request;
     const url = request.url;
     const path = request.path;
     magicJS.log(`请求url=${url}#${request.method}`);
     magicJS.log(`请求body=${magicJS.getRequestBody()}`);
     printResponseData();
-    handleHeaders();
     if ($request && $request.method != 'OPTIONS') {
         switch (path) {
             case '/api/app/blackOrWhite':