如何在Chrome Dev工具中隐藏响应标题

时间:2019-09-11 07:33:24

标签: typescript google-chrome-devtools response-headers

是否可以在 Header 部分的Network Console下的 Response Header 中隐藏所有详细信息,我尝试从Internet上找到很多东西,但没有得到相关的解决方案在堆栈中发现溢出,但没有得到。

示例

func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
    print(indexPath.row)
    let id = quotationSeelctedData[indexPath.row].id
    print(id)
    if arrSelectedIds.contains(id){
        self.arrSelectedIds.remove(at: indexPath.row)
        print(self.arrSelectedIds)
        if self.arrSelectedIds.count == 0{
            btnSelectAll.setTitle("Select All", for: .normal)
            btnSelectAll.backgroundColor = UIColor(red: 0/255, green: 175/255, blue: 239/255, alpha: 1)
            self.btnShare.isHidden = true
        }
        self.tblListView.reloadData()
    }else{
        self.arrSelectedIds.append(id)
        print(self.arrSelectedIds)
        self.btnSelectAll.setTitle("DeSelect All", for: .normal)
        self.btnSelectAll.backgroundColor = UIColor(red: 119/255, green: 119/255, blue: 119/255, alpha: 1)
        self.btnShare.isHidden = false
        self.tblListView.reloadData()
    }
}

我也想在“常规”部分中隐藏例如:

Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Content-Type, Accept, X-Requested-With,Origin, remember-me,empID,Authorization,password ,username,Access-Control-Request-Headers,Access-Control-Request-Method
Access-Control-Allow-Methods: POST, GET,DELETE, PUT
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 3600
Content-Length: 28
Content-Type: application/json;charset=UTF-8
Date: Wed, 11 Sep 2019 07:01:44 GMT

这是我编写此代码的Java代码

Request URL: http://53.16.125.1:3030/vrc-1.1.2/getmenulist?roleId=31&productId=1
Request Method: GET
Status Code: 200 
Remote Address: 53.16.125.1:3030
Referrer Policy: no-referrer-when-downgrade

我的期望是如何在编码的帮助下隐藏所有细节

预先感谢

快乐编码☻

0 个答案:

没有答案