Files
open-webui/backend/open_webui/utils
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
..
2026-11-10 21:18:18 +09:00
2026-11-16 21:10:30 +09:00
2026-11-16 13:15:49 +09:00
2026-11-13 17:36:00 +09:00
2026-11-16 21:10:30 +09:00
2026-11-02 00:31:46 +09:00
2026-11-09 08:05:51 +09:00
2026-11-05 11:41:25 +09:00
2026-11-14 00:45:43 +09:00
2026-11-16 21:10:30 +09:00
2026-10-12 17:29:04 +04:00
2026-07-23 02:54:56 -04:00
2026-11-02 09:52:30 +09:00
2026-11-13 17:36:00 +09:00
2026-07-31 17:41:14 -04:00
2026-11-16 19:43:06 +09:00
2026-11-13 17:36:00 +09:00
2026-11-02 08:48:51 +09:00
2026-10-25 08:24:14 +09:00
2026-11-16 19:38:00 +09:00
2026-11-16 19:38:00 +09:00
2026-07-26 23:09:22 -04:00
2026-11-13 17:36:00 +09:00
2026-11-05 16:54:50 +09:00
2026-11-02 08:48:51 +09:00
2026-11-02 08:48:51 +09:00
2026-03-17 17:58:01 -05:00
2026-08-24 18:29:36 -04:00
2026-11-02 12:45:15 +09:00
2026-10-16 14:31:39 +04:00
2026-11-13 17:36:00 +09:00
2026-11-06 13:40:53 +09:00
2026-11-16 13:15:49 +09:00
2026-11-13 17:36:00 +09:00
2026-11-16 21:10:30 +09:00
2026-11-11 15:34:33 +09:00
2026-11-16 13:15:49 +09:00
2026-11-02 08:48:51 +09:00
2026-10-11 15:55:57 +04:00
2026-11-02 08:48:51 +09:00