songxingwei 4 年之前
父节点
当前提交
b6cb999c4d
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      application/api/controller/User.php

+ 0 - 5
application/api/controller/User.php

@@ -373,11 +373,6 @@ class User extends Api
      * @return Json
      */
     public function userInfo(){
-        header('Access-Control-Allow-Origin:*');
-        header('Access-Control-Allow-Credentials:true');
-        header('Access-Control-Allow-Methods:*');
-        header('Access-Control-Allow-Headers:Origin,X-Requested-With, Content-Type, Accept, x-access-sign, x-access-time, uid,Access-Control-Allow-Credentials,Access-Token,access-token,token,access-control-allow-origin,Token,Access-Control-Allow-Origin,Content-Type,Referer,User-Agent');
-
         $user = $this->auth->getUserinfo();
         $user['avatar'] = !empty($user['avatar'] ) ? $user['avatar'] : '/static/driver/avatar.jpeg';
         //我的支出记录