Aspire doesn't replace http client Uri with actual address in blazor webassembly standalone app because it don't have appsettings.json #4785
Labels
area-app-model
Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Describe the bug
i referenced the blazor project to Aspire app host so this is my aspire app host code
and this is my blazor code to add HTTP client
so as you can see in the result it doesn't replace the
![file](https://private-user-images.githubusercontent.com/53250527/345588690-2747091e-6af0-442f-9255-6df05f3c5b49.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1ODY5NDUsIm5iZiI6MTcyMDU4NjY0NSwicGF0aCI6Ii81MzI1MDUyNy8zNDU1ODg2OTAtMjc0NzA5MWUtNmFmMC00NDJmLTkyNTUtNmRmMDVmM2M1YjQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDA0NDQwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM0Mjk1NGIxMmE1Y2JiOTBlZmEyZmZjMWU0MDk1N2ViNWU1NWVlNmI0MjA3ZTY1NTNkMjk0YjZhZDM1OGE0NGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.aJRoGqIRSwDU2LeY4n7eF12kY7Ii_yeAGK2wYfQV79M)
http://identityserverapi
with the actual addressand also i found the
builder.Configuration.GetConnectionString("identityserverapi");
doesn't work because we don't haveappsettings.json
in blazor wasm so i think Aspire doesn't work fo the blazor wasmThe text was updated successfully, but these errors were encountered: