dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.33k stars 9.97k forks source link

Blazor WASM routing issue #44071

Closed Julien-Marpault closed 2 years ago

Julien-Marpault commented 2 years ago

Is there an existing issue for this?

Describe the bug

I'm working on a blazor WASM app with a base url of http://foo.com. in this app I have a link

<a hred="/books"> books </a>

when clicking the link te page is loaded, but all async calls are not awaited ( call to my apis for exemple)

if the base url is http://whatever.foo.com everything works perfectly.

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

.Net 7 RC1

Anything else?

Visual studio 2022 last preview version

Julien-Marpault commented 2 years ago

I was confused by a CORS issue with the backend.