Skip to content

Commit f9f8edc

Browse files
committed
wip
1 parent 5e63381 commit f9f8edc

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

app/Support/helpers.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
use Illuminate\Support\Facades\Vite;
43
use Illuminate\Support\Str;
54

65
if (! function_exists('localized_route')) {
@@ -12,10 +11,3 @@ function localized_route(string $name, mixed $parameters = [], bool $absolute =
1211
return route($localizedName, $parameters, $absolute);
1312
}
1413
}
15-
16-
if (! function_exists('csp_nonce')) {
17-
function csp_nonce(): string
18-
{
19-
return Vite::cspNonce() ?? '';
20-
}
21-
}

config/csp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@
5656
* and cannot add inline nonces.
5757
* Note that this will make your CSP policy less secure.
5858
*/
59-
'nonce_enabled' => env('CSP_NONCE_ENABLED', true),
59+
'nonce_enabled' => env('CSP_NONCE_ENABLED', false),
6060
];

0 commit comments

Comments
 (0)