彭俊 6 жил өмнө
parent
commit
d2b26f4aa1

+ 2 - 2
app/Http/Middleware/CORS.php

@@ -20,8 +20,8 @@ class CORS
         $headers = [
         $headers = [
             'Access-Control-Allow-Methods'=> 'POST, GET, OPTIONS, PUT, DELETE',
             'Access-Control-Allow-Methods'=> 'POST, GET, OPTIONS, PUT, DELETE',
             'Access-Control-Allow-Headers'=> 'Content-Type, X-Auth-Token, Origin',
             'Access-Control-Allow-Headers'=> 'Content-Type, X-Auth-Token, Origin',
-            'Access-Control-Allow-Origin: *',
-            'Access-Control-Allow-Credentials', 'false'
+//            'Access-Control-Allow-Origin'=> '*',
+            'Access-Control-Allow-Credentials'=> 'false'
         ];
         ];
         if($request->getMethod() == "OPTIONS") {
         if($request->getMethod() == "OPTIONS") {
             return Response::make('OK', 200, $headers);
             return Response::make('OK', 200, $headers);