Web App as a server only works after having been run in the browser.

2022-06-13T17:35:24.497+00:00

My app has two parts: client and server. Both are web apps. They are connected through websocket. For some reason, if I first run the server in the browser (it shows just "upgrade required", which it is supposed to show), everything works just fine.
However, if I choose to run the client without first running the server in the browser, the server sends: "error 302".
The server has status running all the time.
On localhost everything works smoothly.

Please help

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,157 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,840 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anatolii Kiguradze (Akvelon INC) 1 Reputation point
    2022-06-16T05:18:01.893+00:00

    The issue was actually in authentication. The backend was trying to get user authentication behind the scenes and the client could not satisfy it obviously)

    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.