N
N
ninja op op2020-08-01 12:23:33
Laravel
ninja op op, 2020-08-01 12:23:33

How to make secure requests between Laravel and Vue?

After registration, the user displays the following message "You have successfully registered" and at the same time sends the user data from Laravel.
nPLeKsr6llM.jpg
After the reboot, a variable is declared from app.blade.php: const User = {} inside which is all the user data from Laravel.

How can data be transmitted and processed securely?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jazzus, 2020-08-01
@jazzus

If the user is not needed at the front, do not return the user in the method that returns it.
If needed.
Return the exact json response through Api Resource where you specify only the data that is needed. Completely insecure data (passwords, appearances, etc.), which will definitely not be used at the front, should be written in the $hidden model.

C
chakaponi, 2020-08-01
@chakaponi

Move website from http to https

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question