Page 1 of 1

Non authorized request returns HTML text

PostPosted: Wed Jun 07, 2017 12:05 pm
by Johnny1102
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

Re: Non authorized request returns HTML text

PostPosted: Tue Jun 13, 2017 2:27 am
by ismcagdas
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.