前端地址:a.com
api地址:b.com
使用
php think make:middleware admin/CrossDomain
handle内容为
$response = $next($request);
$origin= $request->header('Origin', '
前端地址:a.com
api地址:b.com
使用
php think make:middleware admin/CrossDomain
handle内容为
$response = $next($request);
$origin= $request->header('Origin', '