Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.96 KB | None | 0 0
  1.     /*
  2.      * You can enable CORS for 1 or multiple paths.
  3.      * Example: ['api/*']
  4.      */
  5.     'paths' => ['api/*'],
  6.  
  7.     /*
  8.     * Matches the request method. `[*]` allows all methods.
  9.     */
  10.     'allowed_methods' => ['*'],
  11.  
  12.     /*
  13.      * Matches the request origin. `[*]` allows all origins.
  14.      */
  15.     'allowed_origins' => [env('APP_URL'), 'http://localhost:8010'],
  16.  
  17.     /*
  18.      * Matches the request origin with, similar to `Request::is()`
  19.      */
  20.     'allowed_origins_patterns' => [],
  21.  
  22.     /*
  23.      * Sets the Access-Control-Allow-Headers response header. `[*]` allows all headers.
  24.      */
  25.     'allowed_headers' => ['*'],
  26.  
  27.     /*
  28.      * Sets the Access-Control-Expose-Headers response header.
  29.      */
  30.     'exposed_headers' => false,
  31.  
  32.     /*
  33.      * Sets the Access-Control-Max-Age response header.
  34.      */
  35.     'max_age' => false,
  36.  
  37.     /*
  38.      * Sets the Access-Control-Allow-Credentials header.
  39.      */
  40.     'supports_credentials' => true,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement