I have a simple .net core web api with one action:
[Route(\"[action]\")] public class APIController : Controller { // GET api/values [HttpGet] pu
In my case (.NET core 2.1) I had to modify the Properties/launchSettings.json file.
Properties/launchSettings.json
Set the applicationUrl to a list of allowed urls separated by semicolons like this
applicationUrl
"applicationUrl": "https://localhost:5001;http://odin:5000"
Hope this helps someone out there.