原因在上一篇提到Failed to load resource: the server responded with a status of 405 (Not Allowed)
少说话上代码:
```java
location /api/ {
proxy_pass http://172.0.0.1:8085;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
可以保证post请求变成get时,重定向到后台请求的参数不会丢失。