Consuming Auth0 APIs from .NET Core WEB API

Hi,
I am facing the below issue
1.I am writing .NET Core Web API which have url like https://localhost:44340/

  1. I have specified CORS Origin URL with the above url in application settings. But still whenever I am trying to consume any auth0 apis from my the .net core WEB API, getting error like “A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond”. Please find the one of code snippet which I am executing is given below. Please help me as I am blocked here. Any early response will be really appreciated.
    Note: If I call the API from post man or any C# console based applications, the below code snippet is working fine.
    var client = new RestClient(“https://dev-jyns92yn.us.auth0.com/oauth/token”);
    var request = new RestRequest(Method.POST);
    request.AddHeader(“content-type”, “application/json”);
    request.AddParameter(“application/json”, “{“client_id”:“Client_ID”,“client_secret”:“Client_Secret”,“audience”:“audience”,“grant_type”:“client_credentials”}”, ParameterType.RequestBody);
    IRestResponse response = client.Execute(request);