For me replacing localhost in: https://localhost/api/{your operation} with 10.0.2.2:8000 didnt work. My .NET core API wasnt opening on port 8000, but on a random port. I ran my .NET core API and got the port number from the url. I ended up with https://10.0.2.2:7114/api/{your operation}. That did work.