Browse Source

Weenier utc项目部署

wesmiler 4 years ago
parent
commit
aff821ae89
1 changed files with 1 additions and 4 deletions
  1. 1 4
      app/Http/Middleware/EnableCrossRequestMiddleware.php

+ 1 - 4
app/Http/Middleware/EnableCrossRequestMiddleware.php

@@ -34,10 +34,7 @@ class EnableCrossRequestMiddleware
     {
         $response = $next($request);
         $origin = $request->server('HTTP_ORIGIN') ? $request->server('HTTP_ORIGIN') : '';
-        $allow_origin = [
-            'http://localhost:8080',
-            'http://manage.evl.pro.rxthink.cn',
-        ];
+        $allow_origin = [];
         if (in_array($origin, $allow_origin)) {
             //允许所有资源跨域
             $response->header('Access-Control-Allow-Origin', $origin);