S
S
s1veme2020-12-04 14:31:11
Flask
s1veme, 2020-12-04 14:31:11

How to make secure transfer of information from backend to frontend?

Frontend sends a request with the user login argument , after which backend catches this request and returns information about the user in json format.

As far as I understand, anyone can simply follow the url and a huge json will be returned to him, or make the same request.

How to share information more securely and hide it from others?
It's about user information.

Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-12-04
@NeiroNx

Sessions, cookies.
Flask has the flask_login module, a login_required decorator for every request.
After authorization, a cookie with a session ID is passed to the user and all requests will be authorized for this user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question