Explorar el Código

Merge pull request #1614 from visuddhinanda/laravel

修改 laravel/config/cors.php
visuddhinanda hace 2 años
padre
commit
8327eac801
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      config/cors.php

+ 3 - 3
config/cors.php

@@ -17,13 +17,13 @@ return [
 
 
     'paths' => ['api/*'],
     'paths' => ['api/*'],
 
 
-    'allowed_methods' => ['GET','POST','PUT','DELETE','PATCH','OPTIONS'],
+    'allowed_methods' => ['GET','POST','PUT','DELETE','PATCH'],
 
 
-    'allowed_origins' => explode(',',env('ALLOWED_ORIGINS', 'http://127.0.0.1:3000')),
+    'allowed_origins' => explode(',',env('CORS_ALLOWED_ORIGINS', 'http://127.0.0.1:3000')),
 
 
     'allowed_origins_patterns' => [],
     'allowed_origins_patterns' => [],
 
 
-    'allowed_headers' => ['content-type','cookie','authorization','x-requested-with'],
+    'allowed_headers' => ['content-type','cookie','authorization','x-requested-with','accept-language'],
 
 
     'exposed_headers' => [],
     'exposed_headers' => [],