Skip to content

Changing base href in web assembly blazor has undesired results #19928

Closed
@jDover01

Description

@jDover01

Describe the bug

After changing the base href tag in web assembly client project authentication no longer works correctly.

To Reproduce

Create new web assembly project change base href to "/client/" in index.html and add app.UsePathBase("/client") to server-side project startup.cs file

client now receives a 401 after successful login

Further technical details

  • Blazor WebAssembly 3.2.0 Preview 2
  • Visual Studio 2019 16.4.5

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions