@@ -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;