I had the same issue, the problem was solved by removing slash( / ) from the ending of URL, because I always copy and paste urls from chrome browser and it has the / at the end :
.WithOrigins("https://localhost:60576/") // not working
but
.WithOrigins("https://localhost:60576") // working !!!