Next.js Discord

Discord Forum

Server Actions

Answered
TyZreX posted this in #help-forum
Open in Discord
x-forwarded-host and host headers do not match origin header from a forwarded Server Actions request. Aborting the action.
Answered by TyZreX
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
View full answer

10 Replies

It was nginx issue but anyways thank you
ah ok sounds good
@TyZreX It was nginx issue but anyways thank you
for future people, is there something you could share that you did to fix :)
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
Answer
Add these lines to the nginx config
@riský
How do I implement multirole components in nextjs
i think this may be better suited to make another thread!
Sure