diff --git a/app/Http/ContentSecurityPolicy.php b/app/Http/ContentSecurityPolicy.php index b66e6ee..6f7387e 100644 --- a/app/Http/ContentSecurityPolicy.php +++ b/app/Http/ContentSecurityPolicy.php @@ -7,20 +7,10 @@ class ContentSecurityPolicy extends Basic { - private function forUpPage() - { - $this->addDirective(Directive::SCRIPT, 'self'); - $this->addDirective(Directive::STYLE, 'self'); - $this->addDirective(Directive::STYLE, 'fonts.bunny.net'); - $this->addDirective(Directive::SCRIPT, 'cdn.tailwindcss.com'); - } - public function configure() + public function configure(): void { parent::configure(); if (app()->environment('production')) { - if (request()->is('up')) { - $this->forUpPage(); - } $this ->addDirective(Directive::SCRIPT, 'self') ->addDirective(Directive::STYLE, 'self') diff --git a/bootstrap/app.php b/bootstrap/app.php index d3dd08f..5a4c6a1 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -14,7 +14,6 @@ apiPrefix: 'api', web: __DIR__.'/../routes/web.php', commands: __DIR__.'/../routes/console.php', - health: '/up', then: function () { foreach (['raiseaconcern', 'selfreflection'] as $route) { Route::domain(config('app.domains.'.$route.'.url'))