From 9d4c415d04f95b474164c45dc4365f08d0ed9278 Mon Sep 17 00:00:00 2001 From: Federico Boncaldo Date: Fri, 30 Aug 2024 13:14:47 +0100 Subject: [PATCH] Update README.md (#127) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0c8e430..95115a9 100644 --- a/README.md +++ b/README.md @@ -237,7 +237,7 @@ There are few other options to use inline styles and scripts. Take a look at the ### Integration with Vite -When building assets, Laravel's Vite plugin can [generate a nonce](https://laravel.com/docs/9.x/vite#content-security-policy-csp-nonce) that you can retrieve with `Vite::useCspNonce`. You can use in your own `NonceGenerator`. +When building assets, Laravel's Vite plugin can [generate a nonce](https://laravel.com/docs/9.x/vite#content-security-policy-csp-nonce) that you can retrieve with `Vite::cspNonce`. You can use in your own `NonceGenerator`. ```php namespace App\Support; @@ -249,7 +249,7 @@ class LaravelViteNonceGenerator implements NonceGenerator { public function generate(): string { - return Vite::useCspNonce(); + return Vite::cspNonce(); } } ```