Base solution for your next web application
Open Closed

Using dynamic api from public website. #6227


User avatar
0
huntethan89 created

When trying to use application service from public website gives error- Cannot read property 'app' of undefined

JS Code-

var _homeService = abp.services.app.home;
_homeService.getData({ pageNumber: 0 })
    .done(function (data) {
        console.log(data);
    });

Is there any way to allow application services to be accessible from public website? Template is Core+jQuery


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

    You can refer to this document to add JavaScript proxies. https://aspnetboilerplate.com/Pages/Documents/Dynamic-Web-API