Answer the question
In order to leave comments, you need to log in
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.
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question