When you try to run application, for example on Amazon Linux server, and trying to connect it
with a domain with the use of NGINX you can encounter some problematic issue.
You're starting server but, and it works, but when you try to make POST request, you're getting 422 Unprocessable Entity error.
This is because your application is still sending localhost Header, an this is not recognized by the app.
To fix this you need to modify your NGINX configuration
Read more