Barry vd. Heuvel 4 years ago
parent
commit
c222f6d04f
2 changed files with 5 additions and 6 deletions
  1. 0 1
      app/Http/Middleware/HandleCors.php
  2. 5 5
      config/cors.php

+ 0 - 1
app/Http/Middleware/HandleCors.php

@@ -6,5 +6,4 @@ use Fruitcake\Cors\HandleCors as Middleware;
 
 class HandleCors extends Middleware
 {
-
 }

+ 5 - 5
config/cors.php

@@ -33,27 +33,27 @@ return [
      */
     'allowed_origins' => ['*'],
 
-    /**
+    /*
      * Matches the request origin with, similar to `Request::is()`
      */
     'allowed_origins_patterns' => [],
 
-    /**
+    /*
      * Sets the Access-Control-Allow-Headers response header. `[*]` allows all headers.
      */
     'allowed_headers' => ['*'],
 
-    /**
+    /*
      * Sets the Access-Control-Expose-Headers response header.
      */
     'exposed_headers' => false,
 
-    /**
+    /*
      * Sets the Access-Control-Max-Age response header.
      */
     'max_age' => false,
 
-    /**
+    /*
      * Sets the Access-Control-Allow-Credentials header.
      */
     'supports_credentials' => false,