Files
open-webui/backend
Classic298 3a1a993981 fix: MCP OAuth 2.1 setup fails when the auth server sends very large response headers (#34084)
* fix: MCP OAuth 2.1 setup fails when the auth server sends very large response headers

Adding an MCP server with OAuth 2.1 failed with "Connection error" when its authorization server sent a single response header over 8 KB, which monday.com does with an 11 KB Content-Security-Policy on every OAuth endpoint. Setting up these servers and refreshing their tokens now works, with single headers accepted up to 64 KB.

Fixes #34078

* fix: raise the MCP OAuth header limit only where setup needs it

The check that runs before client registration already moves on when it cannot read a response, so it keeps the default header limit. The larger limit now stays on the requests that broke setup and token refresh.
2026-11-16 22:42:48 +09:00
..
2024-02-24 22:35:11 -08:00
2024-09-06 04:59:20 +02:00
2026-11-02 08:48:51 +09:00