黄宗昌 2 роки тому
батько
коміт
5e082c8285
1 змінених файлів з 0 додано та 1 видалено
  1. 0 1
      app/Http/Controllers/V1/ProductController.php

+ 0 - 1
app/Http/Controllers/V1/ProductController.php

xqd
@@ -19,7 +19,6 @@ class ProductController extends Controller
 {
     public function __construct()
     {
-        header('Access-Control-Allow-Origin:*'); // *代表允许任何网址请求
         $this->user = auth('api')->user();
         $this->userId = $this->user ? $this->user->id : 0;