---
title: "Comment by Andrew on \"Next.js Security Hardening: Middleware, Server Actions, and CSP Patterns That Hold Up\" | Hashnode"
description: "I like how this puts the check next to the data rather than the route. Server actions stay public until proven otherwise."
url: "https://hashnode.com/posts/next-js-security-hardening-middleware-server-actions-and-csp-patterns-that-hold-up/6a7b83c2db309b802910f546/comment/6a7c17fc1463db7b22f1a802"
---

[Discussion](https://hashnode.com/posts/next-js-security-hardening-middleware-server-actions-and-csp-patterns-that-hold-up/6a7b83c2db309b802910f546)

Comment [Next.js Security Hardening: Middleware, Server Actions, and CSP Patterns That Hold Up](https://hashnode.com/posts/next-js-security-hardening-middleware-server-actions-and-csp-patterns-that-hold-up/6a7b83c2db309b802910f546)

[Andrew](https://hashnode.com/@rizzdev)

[Aug 12](https://hashnode.com/posts/next-js-security-hardening-middleware-server-actions-and-csp-patterns-that-hold-up/6a7b83c2db309b802910f546/comment/6a7c17fc1463db7b22f1a802)

I like how this puts the check next to the data rather than the route. Server actions stay public until proven otherwise.
