Browse Source

用户展示特定模块

liuzejian 2 years ago
parent
commit
bc2f42f508
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Http/Middleware/EnabledCrossRequestMiddleware.php

+ 2 - 0
app/Http/Middleware/EnabledCrossRequestMiddleware.php

@@ -18,6 +18,8 @@ class EnableCrossRequestMiddleware
             'http://localhost:8000',
             'http://192.168.0.118:8000'
         ];
+        dump($allow_origin);
+        dump($origin);
         if (in_array($origin, $allow_origin)) {
             $response->header('Access-Control-Allow-Origin', '*');
             $response->header('Access-Control-Allow-Headers', 'Origin, Content-Type, Cookie, X-CSRF-TOKEN, Accept, Authorization, X-XSRF-TOKEN');