目前,
我使用 Postman Restsharp 在iphone Safari mobile 中检索 JWT 令牌。
请问如何添加Windows认证?
我尝试了以下方法,但无法检索响应数据。
但它在公司笔记本电脑上工作。
var client = new RestClient("https://mvponduty.com/XChange_App_Api/api/auth/authenticate");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.UseDefaultCredentials = true;
request.AddHeader("Content-Type", " application/json; charset=utf-8");
request.AddHeader("Access-Control-Allow-Origin", " *");
request.AddHeader("Cache-Control", " no-cache");
request.AddHeader("Pragma", " no-cache");
request.AddHeader("Cookie", ".AspNetCore.Session=CfDJ8AoxL%2BrAgZtDtnzh7ZplJfx4moiRGYT4rFtA6zp%2B1d8CAQ4D%2FZary6IvN%2Ftjm7wl2Ke992wbhnP7cmv3q7ba0%2BQoZKHuT%2B2FyJzIAjaJFH2GX0ZFiz1nHdSLyGhPMrG4KCNXZ94u79I7DHKjVAxcREfISUxxrFnxib0Aw1Q4yNQw");
request.AddParameter(" application/json; charset=utf-8", "", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);