Добавление ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
решает проблему, и я возвращаю данные из моего .NET Core API.
Примечание : Я столкнулся с проблемой доступа к .NET Core Controller API через Miscrosoft Word VSTO-AddIn
try
{
/*This is the Line I added and it makes my .NET Core API Accessible in my VSTO-AddIn */
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
string serviceUrl= "https://domainname/api/values";
HttpClient client = new HttpClient();
HttpResponseMessage response = client.GetAsync(serviceUrl).Result;
string stringData = response.Content.ReadAsStringAsync().Result;
}
catch (Exception ex)
{
throw ex;
}