Call Protected APIs from a Blazor Web App

Unfortuneatly this solution doesn’t really work for Interactive Auto mode, it’s working only because you have already downloaded the wasm resources and are not running on server as per interactive auto mode until the wasm resources have downloaded.

Delete all your applicaiton local storage and change your network settings to fast3g then refresh the page and note the api call doesn’t work and you will get the below error, becuase the code is running server side still.

InvalidOperationException: An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.

Can you please provide a solution that works with Interactive Auto correctly?