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