Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * You can enable CORS for 1 or multiple paths.
- * Example: ['api/*']
- */
- 'paths' => ['api/*'],
- /*
- * Matches the request method. `[*]` allows all methods.
- */
- 'allowed_methods' => ['*'],
- /*
- * Matches the request origin. `[*]` allows all origins.
- */
- 'allowed_origins' => [env('APP_URL'), 'http://localhost:8010'],
- /*
- * 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' => true,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement