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?
- ✓Correct answer:
serverActions.allowedOriginswith the proxy's domain - 2
images.remotePatterns - 3
basePath
Explanation
Next.js compares the Origin and Host headers to block CSRF. Trusted extra origins must be listed explicitly.