黄宗昌 2 年之前
父节点
当前提交
5e082c8285
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      app/Http/Controllers/V1/ProductController.php

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

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