400 Bad Request - request header or cookie too large

前端 未结 4 583
面向向阳花
面向向阳花 2020-12-02 09:27

I am getting a 400 Bad Request request header or cookie too large from nginx with my Rails app. Restarting the browser fixes the issue. I am only storing a string id in my

4条回答
  •  情歌与酒
    2020-12-02 09:52

    In my case (Cloud Foundry / NGiNX buildpack) the reason was the directive proxy_set_header Host ..., after removing this line nginx became stable:

    http {
      server {
        location /your-context/ {
           # remove it: # proxy_set_header Host myapp.mycfdomain.cloud;
        }
      }
    }
    

提交回复
热议问题