rambo 1 rok pred
rodič
commit
6784be33c6
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      app/BaseController.php

+ 1 - 1
app/BaseController.php

@@ -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();
     }