DebugKit doesn't show toolbar in cakephp 5.x

I put Configure::write('DebugKit.forceEnable', true); in bootstrap.php but is only showing a red square that has no interactivity, I can’t open it to see the different parts of the site.
Another thing, when I click on inspect on Google Chrome it shows me an error in the console that says: Failed to load resource: the server responded with a status of 404 (Not Found), and shows this link: http://sindicato5/debug-kit/toolbar/448b047a-9369-4a6a-9d4f-abafea6b0884.
Let me clarify that I’m using this in development mode, I have it in my local computer with windows and wampserver.

Do you have any other JS errors? Or does your logs directory inside your cakephp app indicate some specific error?

This is the last error in error.log:
2023-12-31 12:11:05 warning: Cannot modify header information - headers already sent by (output started at D:\wamp64\www\sindicato5\vendor\cakephp\cakephp\src\Error\Debugger.php:825)
Request URL: /
Referer URL: http://sindicato5/home
Trace:
D:\wamp64\www\sindicato5\vendor\cakephp\cakephp\src\Http\ResponseEmitter.php D:\wamp64\www\sindicato5\vendor\cakephp\cakephp\src\Http\ResponseEmitter.php, line 192
Cake\Http\ResponseEmitter->emitHeaders() D:\wamp64\www\sindicato5\vendor\cakephp\cakephp\src\Http\ResponseEmitter.php, line 69
Cake\Http\ResponseEmitter->emit() D:\wamp64\www\sindicato5\vendor\cakephp\cakephp\src\Http\Server.php, line 141
Cake\Http\Server->emit() D:\wamp64\www\sindicato5\webroot\index.php, line 37
[main]