Browse Source

Fixed cors header

Will Browning 5 years ago
parent
commit
c3f0451e5a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Middleware/Cors.php

+ 1 - 1
app/Http/Middleware/Cors.php

@@ -18,6 +18,6 @@ class Cors
         return $next($request)
             ->header('Access-Control-Allow-Origin', '*')
             ->header('Access-Control-Allow-Methods', 'GET, POST, PATCH, PUT, DELETE, OPTIONS')
-            ->header('Access-Control-Allow-Headers', 'Origin, Content-Type, Accept, Authorization, X-Request-With');
+            ->header('Access-Control-Allow-Headers', 'Origin, Content-Type, Accept, Authorization, X-Requested-With');
     }
 }