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
In my case (Cloud Foundry / NGiNX buildpack) the reason was the directive proxy_set_header Host ..., after removing this line nginx became stable:
proxy_set_header Host ...
http { server { location /your-context/ { # remove it: # proxy_set_header Host myapp.mycfdomain.cloud; } } }