My web application works fine on all laptop browsers and the API is accessible via Swagger on mobile, but the login function fails only on mobile browsers with a 'No response from server' error. What specific steps should I take to diagnose and fix this m

Thilina Dinelka 0 Reputation points
2024-09-12T17:52:04.0766667+00:00

I create Web App, deploy dotnet8 backend to Azure . frontend deployed to Vercel. It together work fine in Laptop browsers. My web application works fine on all laptop browsers and the API is accessible via Swagger on mobile, but the login function fails only on mobile browsers with a 'No response from server' error. What specific steps should I take to diagnose and fix this mobile-only login issue?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,092 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,916 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hardikbhai Velani 75 Reputation points
    2024-09-12T17:55:35.1+00:00

    To diagnose and fix the mobile-only login issue, follow these steps:

    1. Check mobile browser console logs: Inspect the browser's developer console for errors or warnings related to the login request.

    2. Verify API requests: Use tools like Postman or cURL to test the login API endpoint directly, simulating a mobile request.

    3. Inspect network requests: Use browser DevTools to inspect the network requests made during the login process on mobile, checking for any differences from laptop requests.

    4. Validate CORS configuration: Ensure your Azure backend has proper CORS (Cross-Origin Resource Sharing) settings to allow requests from Vercel-hosted frontend on mobile browsers.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.