mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
!12 修复bug:前端调用api模块的api时提示跨域错误的问题
Merge pull request !12 from unset/master
This commit is contained in:
commit
f76276b943
@ -23,6 +23,8 @@ class BuildResponse {
|
|||||||
* @throws \think\exception\DbException
|
* @throws \think\exception\DbException
|
||||||
*/
|
*/
|
||||||
public function run($response) {
|
public function run($response) {
|
||||||
|
$header = config('apiAdmin.CROSS_DOMAIN');
|
||||||
|
$response->header($header);
|
||||||
$data = $response->getData();
|
$data = $response->getData();
|
||||||
$request = Request::instance();
|
$request = Request::instance();
|
||||||
$hash = $request->routeInfo();
|
$hash = $request->routeInfo();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user