\think\middlewareAllowCrossDomain

跨域请求支持

Summary

Methods
Properties
Constants
__construct()
handle()
No public properties found
No constants found
No protected methods found
$cookieDomain
$header
N/A
No private methods found
No private properties found
N/A

Properties

$cookieDomain

$cookieDomain

$header

$header

Methods

__construct()

__construct(\think\Config  $config) : mixed

Parameters

\think\Config $config

Returns

mixed —

handle()

handle(\think\Request  $request, \Closure  $next, array  $header = []) : \think\Response

允许跨域请求

Parameters

\think\Request $request
\Closure $next
array $header

Returns

\think\Response —