Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    GetNonce()

    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.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX