W3cubDocs

/Angular

CSP_NONCE

Token used to configure the Content Security Policy nonce that Angular will apply when inserting inline styles. If not provided, Angular will look up its value from the ngCspNonce attribute of the application root node.

API

const CSP_NONCE: InjectionToken<string | null>;

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/CSP_NONCE