My site is conversations-gcbc.netlify.app, built with NextJS v14.0.2. The /profile page uses a Server Action form to add an entry to state on the server, but it fails with this message in the brower:
Application error: a server-side exception has occurred (see the server logs for more information).
Digest: 1150005166
In the logs, for Function Next.js SSR handler, I find:
Nov 17, 03:17:00 PM: 7f43a7dc ERROR `x-forwarded-host` header with value `conversations-gcbc.netlify.app:80` does not match `origin` header with value `conversations-gcbc.netlify.app` from a forwarded Server Actions request. Aborting the action.
Nov 17, 03:17:00 PM: 7f43a7dc ERROR Error: Invalid Server Actions request.
at rc (/var/task/node_modules/.pnpm/next@14.0.2_react-dom@18.2.0_react@18.2.0_sass@1.69.5/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:14:4679)
at rj (/var/task/node_modules/.pnpm/next@14.0.2_react-dom@18.2.0_react@18.2.0_sass@1.69.5/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:21994)
at /var/task/node_modules/.pnpm/next@14.0.2_react-dom@18.2.0_react@18.2.0_sass@1.69.5/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:24264
at AsyncLocalStorage.run (node:async_hooks:338:14)
at Object.wrap (/var/task/node_modules/.pnpm/next@14.0.2_react-dom@18.2.0_react@18.2.0_sass@1.69.5/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:242796)
at /var/task/node_modules/.pnpm/next@14.0.2_react-dom@18.2.0_react@18.2.0_sass@1.69.5/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:24154
at AsyncLocalStorage.run (node:async_hooks:338:14)
at Object.wrap (/var/task/node_modules/.pnpm/next@14.0.2_react-dom@18.2.0_react@18.2.0_sass@1.69.5/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:242323)
at rI (/var/task/node_modules/.pnpm/next@14.0.2_react-dom@18.2.0_react@18.2.0_sass@1.69.5/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:24081)
at r2.render (/var/task/node_modules/.pnpm/next@14.0.2_react-dom@18.2.0_react@18.2.0_sass@1.69.5/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:28129)
I tried the exact same project code on Vercel and it work there. I would rather host this application with you! Can you help, please?