关于 2. appserver端的跨域的一些完善
需要在文档中加点说明 ?
我觉有必要说明下 serives : appsserver
中新增属性appserver_cors
的配置,不然vue访问需登陆接口会有跨域问题。
版本更新中没说明,找了半天...
'appserver' => [
'class' => '\common\local\local_services\helper\Appserver',
'appserver_cors' => [
'Origin' => ['*'],
'Access-Control-Request-Method' => ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS'],
'Access-Control-Max-Age' => 86400,
]
]