Răsfoiți Sursa

:fire: OPTIONS add 'accept-language'

visuddhinanda 2 ani în urmă
părinte
comite
00856dc82e
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      config/cors.php

+ 2 - 2
config/cors.php

@@ -17,13 +17,13 @@ return [
 
     'paths' => ['api/*'],
 
-    'allowed_methods' => ['GET','POST','PUT','DELETE','PATCH','OPTIONS'],
+    'allowed_methods' => ['GET','POST','PUT','DELETE','PATCH'],
 
     'allowed_origins' => explode(',',env('CORS_ALLOWED_ORIGINS', 'http://127.0.0.1:3000')),
 
     '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' => [],