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

Non authorized request returns HTML text #3346


User avatar
0
johnny1102 created

Hi all, I have a mobile application and asp.net zero is used on the server side.

I use a token base authentication. I call the services, which uses "AbpAuthorize" to mark methods as authenticate. When I call these services from my mobile client it returns HTML text with login page instead of JSON response "Current user did not login to the application!". When I call the same service e.g. from "Adveced REST client" it returns JSON response, but from mobile client HTML text.

Do you know how can I change it?

Thank you very much Best regards Johnny


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

    Hi @Johnny1102,

    I don't have any knowledge about mobile development but I think you should set some header on your request from mobile app. You can use chrome's postman extension to see request header details.

    Thanks.