## 如何设置跨域 框架骨架提供了现成的跨域中间件代码,用户只需将该中间件配置到路由规则中即可实现跨域: - 中间件源码: [>> \App\Http\Middleware\CorsMiddleware::class <<](https://github.com/mix-php/mix-skeleton/blob/master/app/Http/Middleware/CorsMiddleware.php) - 在路由类依赖配置中设置中间件: - [beans/route.php](https://github.com/mix-php/mix-skeleton/blob/master/manifest/beans/route.php)