Next.js Discord

Discord Forum

Form in client side help

Answered
In&Out posted this in #help-forum
Open in Discord
Avatar
Hey folks, so i have a form in client file, in that form i will send a link that is sensitive, and with actions.ts function it will send that link to database, is this safe to do or do i need to make that file server as well?
Answered by B33fb0n3
when you mean by that that you send sensitive data via a server action to the nextjs server then yes, the sensitive information is not available for others
View full answer

4 Replies

Avatar
Just making sure if this is true
Avatar
@In&Out Hey folks, so i have a form in client file, in that form i will send a link that is sensitive, and with actions.ts function it will send that link to database, is this safe to do or do i need to make that file server as well?
Avatar
when you mean by that that you send sensitive data via a server action to the nextjs server then yes, the sensitive information is not available for others
Answer
Avatar
sure thing