Make the CSP compatible with debug tools
This commit is contained in:
parent
e2560cd9cb
commit
561b6c8370
6 changed files with 194 additions and 2 deletions
|
@ -6,6 +6,7 @@ use Alltube\ConfigFactory;
|
|||
use Alltube\Controller\DownloadController;
|
||||
use Alltube\Controller\FrontController;
|
||||
use Alltube\Controller\JsonController;
|
||||
use Alltube\CspMiddleware;
|
||||
use Alltube\ErrorHandler;
|
||||
use Alltube\LocaleManagerFactory;
|
||||
use Alltube\LocaleMiddleware;
|
||||
|
@ -42,6 +43,7 @@ try {
|
|||
// Middlewares.
|
||||
$app->add(new LocaleMiddleware($container));
|
||||
$app->add(new RouterPathMiddleware($container));
|
||||
$app->add(new CspMiddleware($container));
|
||||
|
||||
// Controllers.
|
||||
$frontController = new FrontController($container);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue