request.AddHeader("Content-Type", "application/json"); request.AddHeader(_appSettings.SAPConfig.CSRFTokenName, _appSettings.SAPConfig.CSRFTokenValue); request.AddHeader("Cookie", _appSettings.SAPConfig.CookieValue); request.AddHeader("Username", "xyz" ); request.AddHeader("Password", "xyz"); request.AddHeader("Authorization", $"XYZ"); ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true; client.AddDefaultHeader("User-Agent", "UserAgent"); IRestResponse response = await client.ExecuteAsync(request);
When I execute this below code in VS2019 enterprise version. I am getting the Forbidden error. But the same code executed and got response when open this application in VS2019 Professiona version. can you please tell me what is the problem here
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)