Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Should Mobile App use Web.Host or Web.Mvc for API calls #9699


User avatar
0
ebenzle created

zero version: 8.1.0.0 MVC .net core

For Mobile App (Xamarin) should DefaultHostUrl be set to Web.Host or Web.Mvc URL?

We are currently using the Web.Mvc URL, but continue to get the following error: "A problem occurred while trying to communicate with the server. Do you want to try again? Call failed. stream was reset: PROTOCOL_ERROR GET https://[our website address for MVC app].com/AbpUserConfiguration/GetAll"

We were going to try using the Web.Host project on a different URL for the mobile app API calls, but it seems like that might not work since 'CorsOrigins' only allows for certain domains.


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

    Hi @ebenzle

    Both can be used actually. If your project is an ASP.NET Core & jQuery project and you don't want to host an additional API for this case, you can directly use MVC poroject.

    Do you get this error from the beginning or does that happen sometimes ?