U
U
Urukhayy2018-06-05 11:28:44
Angular
Urukhayy, 2018-06-05 11:28:44

How to protect Angular components from unauthorized user?

The server gives the dist folder to the browser, and the browser stores all the interface code. But if the user is not authorized, I need to hide the interface of the application from him, and so that he cannot even get dist from the server, so that he cannot penetrate the source code in the browser. But how to display an authorization window if it is an application module that is not given to unauthorized users? And is it safe to secure an application with PassportJS cookies? (Not processing token, using Express sessions)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question