Files
Andras Bacsai c8c639e3d6 fix(realtime): keep Reverb handshake under its size limit with large cookie headers
Raise the Reverb max request size and store the remembered list view
cookies unencrypted, so the WebSocket handshake no longer fails with 413
and live updates (like proxy restart logs) reach the browser.
2026-11-06 11:01:06 +01:00

28 lines
729 B
PHP

<?php
namespace App\Http\Middleware;
use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;
class EncryptCookies extends Middleware
{
/**
* The names of the cookies that should not be encrypted.
*
* @var array<int, string>
*/
protected $except = [
//
];
/**
* The remembered list views (RemembersCanvasView) hold only an allow-listed view name.
* Encryption makes each of these per-user, per-page cookies about 330 bytes, and the
* browser sends all of them on the Reverb WebSocket handshake too.
*/
public function isDisabled($name)
{
return parent::isDisabled($name) || preg_match('/^coolify_\d+_[a-z_]+_view$/', $name) === 1;
}
}