Question
Node App routes work but POST data doesn't come through
I can’t seem to get post data to come through on my newly setup server. Sorry I am a newbie at this. This is my setup for nginx. I can reach the server an not get an error on the endpoints but data somehow doesn’t come through works fine locally.
Could it be something with the firewals?
map $httpupgrade $connectionupgrade {
default upgrade;
“ close;
}
server {
listen 80;
listen [::]:80;
server_name mydomain.com www.mydomain.com;
location / {
proxy_pass http://localhost:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×