Next.js · Middle · Question 75 of 75

A Server Action works locally but fails behind a reverse proxy with a different host. Which option helps?

Explanation

Next.js compares the Origin and Host headers to block CSRF. Trusted extra origins must be listed explicitly.

Further reading

Problem with a question

Next.js · Middle · question 75

Test yourself

Take the Next.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz