fixed nonce
This commit is contained in:
parent
6c589a20eb
commit
dfcd9d5acc
2 changed files with 12 additions and 1 deletions
11
app/Support/LivewireNonce.php
Normal file
11
app/Support/LivewireNonce.php
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Support;
|
||||||
|
|
||||||
|
class LivewireNonce
|
||||||
|
{
|
||||||
|
public function __invoke()
|
||||||
|
{
|
||||||
|
return request()->attributes->get('csp-nonce');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -182,5 +182,5 @@ return [
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'nonce' => fn () => request()->attributes->get('csp-nonce'),
|
'nonce' => \App\Support\LivewireNonce::class,
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue