Interface ICspNonceService
Provides CSP nonce generation and retrieval for the current HTTP request.
Namespace: Umbraco.Cms.Core.Security
Assembly: Umbraco.Core.dll
Syntax
public interface ICspNonceService
Methods
View SourceGetNonce()
Gets the CSP nonce for the current request (generates once, caches per-request). Returns null if no HTTP context is available.
Declaration
string? GetNonce()
Returns
| Type | Description |
|---|---|
| string | The CSP nonce value, or null if no HTTP context is available. |