fixed nonce
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run

This commit is contained in:
Edward Tirado Jr 2025-12-14 13:42:50 -06:00
parent 96d1bd121e
commit ff0c090850
3 changed files with 6 additions and 24 deletions

View file

@ -5,6 +5,7 @@ namespace App\Providers;
use App\Models\Interfaces\MovieDbInterface;
use App\Services\OmdbService;
use Illuminate\Support\ServiceProvider;
use Livewire\Livewire;
class AppServiceProvider extends ServiceProvider
{
@ -24,5 +25,10 @@ class AppServiceProvider extends ServiceProvider
if ($this->app->environment('production')) {
\URL::forceScheme('https');
}
// Configure Livewire CSP nonce
Livewire::setScriptNonce(function () {
return request()->attributes->get('csp-nonce');
});
}
}