You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
If you run Vite serve in an environment relies on 3rd party Authentication that return too much cookies (exceeds Header Size 8kb), Vite websocket will return error "Error during WebSocket handshake: Unexpected response code: 431". This is due to NodeJS header size limitation in v10 (nodejs/node#24692), not Vite issue itself. A workaround for now is include flag --max-http-header-size in node script to bypass this.
Describe the solution you'd like
It would be nice if Vite documentation show this as a warning so everyone aware, took me a day to figure out what is wrong :D
Describe alternatives you've considered
I call Vite cli via a custom node script so I can put --max-http-header-size flag in the command
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
If you run Vite serve in an environment relies on 3rd party Authentication that return too much cookies (exceeds Header Size 8kb), Vite websocket will return error "Error during WebSocket handshake: Unexpected response code: 431". This is due to NodeJS header size limitation in v10 (nodejs/node#24692), not Vite issue itself. A workaround for now is include flag --max-http-header-size in node script to bypass this.
Describe the solution you'd like
It would be nice if Vite documentation show this as a warning so everyone aware, took me a day to figure out what is wrong :D
Describe alternatives you've considered
I call Vite cli via a custom node script so I can put --max-http-header-size flag in the command
Additional context
The text was updated successfully, but these errors were encountered: