Web Security · Senior · Question 66 of 75

Why does every Next.js Server Action need its own authorization check?

Explanation

Checking the user on the page that renders the form isn't enough. Verify the session and permissions inside the action, and validate arguments.

Further reading

Problem with a question

Web Security · Senior · question 66

Test yourself

Take the Web Security · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz