|
@@ -45,9 +45,9 @@ abstract class BaseController
|
|
*/
|
|
*/
|
|
public function __construct(App $app)
|
|
public function __construct(App $app)
|
|
{
|
|
{
|
|
|
|
+ header('Access-Control-Allow-Origin: *');
|
|
$this->app = $app;
|
|
$this->app = $app;
|
|
$this->request = $this->app->request;
|
|
$this->request = $this->app->request;
|
|
- header('Access-Control-Allow-Origin: *');
|
|
|
|
// 控制器初始化
|
|
// 控制器初始化
|
|
$this->initialize();
|
|
$this->initialize();
|
|
}
|
|
}
|