Skip to content

Commit 508559f

Browse files
authored
Fix Vite CSP middleware example (laravel#8097)
1 parent c3ee189 commit 508559f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ class AddContentSecurityPolicyHeaders
486486
{
487487
Vite::useCspNonce();
488488

489-
return $next($response)->withHeaders([
489+
return $next($request)->withHeaders([
490490
'Content-Security-Policy' => "script-src 'nonce-".Vite::cspNonce()."'",
491491
]);
492492
}

0 commit comments

Comments
 (0)