title: Laravel CORS with Fruitcake
body: <p>I make <strong>react</strong> project with <strong>laravel</strong> Back-end ... I have a <strong>CORS</strong> problem, I do everything like on link below, with fruitcake.</p>
  <p><a href="https://stackoverflow.com/questions/59194484/laravel-6-cors-policy-issue-with-api">Laravel 6 CORS policy issue with API</a>
  but still not working.</p>
  <h3>cors.php:</h3>
  <pre class="lang-php prettyprint-override"><code>        'paths' =&gt; ['api/*'],
  
      /*
      * Matches the request method. `[*]` allows all methods.
      */
      'allowed_methods' =&gt; ['*'],
  
      /*
       * Matches the request origin. `[*]` allows all origins.
       */
      'allowed_origins' =&gt; ['*'],
  
      /*
       * Matches the request origin with, similar to `Request::is()`
       */
      'allowed_origins_patterns' =&gt; [],
  
      /*
       * Sets the Access-Control-Allow-Headers response header. `[*]` allows all headers.
       */
      'allowed_headers' =&gt; ['*'],
  
      /*
       * Sets the Access-Control-Expose-Headers response header.
       */
      'exposed_headers' =&gt; false,
  
      /*
       * Sets the Access-Control-Max-Age response header.
       */
      'max_age' =&gt; false,
  
      /*
       * Sets the Access-Control-Allow-Credentials header.
       */
      'supports_credentials' =&gt; false,
  </code></pre>
  <p>And, kernel middle-ware is:</p>
  <pre><code>        protected $middleware = [
          \App\Http\Middleware\TrustProxies::class,
          \App\Http\Middleware\CheckForMaintenanceMode::class,
          \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
          \App\Http\Middleware\TrimStrings::class,
          \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
  
          \Fruitcake\Cors\HandleCors::class,
      ];
  </code></pre>
  <p>what else could be the problem?</p>