Starts in:
2 DAYS
5 HRS
2 MIN
5 SEC
Starts in:
2 D
5 H
2 M
5 S
Open Closed

Get Remote API URL from Blazor Wasm #5369


User avatar
0
jhsanc created
  • ABP Framework version: v7.1.1
  • UI type: Blazor Wasm
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

I need know how I can do to get api URL from separated blazor wasm module, if I write this:

        var apiURL = _configuration.GetValue<string>("RemoteServices:BaseUrl");

Return null, coz it's called in module not in root application:

I need get BaseURL of blazor root application appsettings.json but from a module:


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I guess the name of the baseUrl should be RemoteServices:Default:BaseUrl

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06