cors.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2017~2021 LARAVEL研发中心
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://www.laravel.cn
  8. // +----------------------------------------------------------------------
  9. // | Author: laravel开发员 <laravel.qq.com>
  10. // +----------------------------------------------------------------------
  11. return [
  12. /*
  13. |--------------------------------------------------------------------------
  14. | Cross-Origin Resource Sharing (CORS) Configuration
  15. |--------------------------------------------------------------------------
  16. |
  17. | Here you may configure your settings for cross-origin resource sharing
  18. | or "CORS". This determines what cross-origin operations may execute
  19. | in web browsers. You are free to adjust these settings as needed.
  20. |
  21. | To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
  22. |
  23. */
  24. 'paths' => ['api/*'],
  25. 'allowed_methods' => ['*'],
  26. 'allowed_origins' => ['*'],
  27. 'allowed_origins_patterns' => [],
  28. 'allowed_headers' => ['*'],
  29. 'exposed_headers' => [],
  30. 'max_age' => 0,
  31. 'supports_credentials' => false,
  32. ];