Answer the question
In order to leave comments, you need to log in
Why does NGINX turn a POST request into a GET request?
I have a nginx webserver that I use to serve static and as a reverse proxy for the Back-End.
Initially, this error did not pop up, but as soon as I tried to make POST
a request, it immediately began to work incorrectly.
This is how my POST
request
looks like And this is how my config looks like NGINX
Why after proxying my backend treats this request as GET.
I also read in Google that the body of the request is also lost.
Answer the question
In order to leave comments, you need to log in
Either remove the last slash in location in nginx, or add it in the request.
https://nginx.org/ru/docs/http/ngx_http_core_modul...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question