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

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13