ApiAdmin/application/http/middleware/AdminResponse.php
2019-05-19 15:56:22 +08:00

12 lines
228 B
PHP

<?php
namespace app\http\middleware;
use think\facade\Config;
class AdminResponse {
public function handle($request, \Closure $next) {
return $next($request)->header(Config::get('apiadmin.CROSS_DOMAIN'));
}
}