TanStackT
TanStack4mo ago
3 replies
worthy-azure

How to access nonce in Middleware?

How can we access the nonce introduced in https://github.com/TanStack/router/pull/5287 in Middleware .server context, so that we can properly set the CSP header?
GitHub
Summary by CodeRabbit

New Features

Added optional nonce support to assets, enabling nonce attributes on rendered scripts, styles, and links.
Automatically propagates a configured nonce from route...
Was this page helpful?