<?php
return [
/*
|--------------------------------------------------------------------------
| Cross-Origin Resource Sharing (CORS) Configuration
|--------------------------------------------------------------------------
|
| Here you may configure your settings for cross-origin resource sharing
| or "CORS". This determines what cross-origin operations may execute
| in web browsers. You are free to adjust these settings as needed.
|
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
*/
//路由匹配
'paths' => ['wx/*'],
//允许跨域访问的方法 eg:get post
'allowed_methods' => ['*'],
//访问源
'allowed_origins' => ['*'],
//与访问源相识但是可以有正则匹配
'allowed_origins_patterns' => [],
//默认允许的请求头
'allowed_headers' => ['*'],
//放置特殊的请求头
'exposed_headers' => [],
//嗅探时间
'max_age' => 1800,
//是否允许携带cooke
'supports_credentials' => false,
];
laravel跨域类cors
最新推荐文章于 2024-05-19 09:47:27 发布