fix(server): stop 431 on /api for browsers with large session cookies

This commit is contained in:
2026-11-23 14:14:28 +00:00
parent 5a9d104b37
commit 536f35ab55
9 changed files with 122 additions and 9 deletions
+3
View File
@@ -85,6 +85,8 @@ server {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header Connection "";
# The backend authenticates by API-key header; browser session cookies only bloat the request.
proxy_set_header Cookie "";
# Timeouts for long-running operations
proxy_connect_timeout 60s;
@@ -122,6 +124,7 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Cookie "";
# WebSocket timeouts
proxy_connect_timeout 7d;