I am making a form using next js 14, I made an actions.ts file there I built a generic method that shows a console log.
In the form component, loginForm.tsx, in the form tag, I use the action property, and from there, I call the generic method that I made in action.ts
What happened is that, when I clicked on the save button of the form, I observed that in the devtools, in the network tab, a request was reflected, but I saw that in the netowrk tab, in the payload option, all the information in the form fields is displayed.
my doubts are:
- Why does the user and password information appear in the devtools -> tab network -> in the payload?
- Is that considered a security vulnerability?
- Is there any idea on how to prevent it from displaying that information?
I was investigating the topic, apparently it has to do with the html tag , but there was no mention of how to solve that detail