How to inject nonce from express.js node to angular 19?

Discussão em 'Angular' iniciado por karolix1279, Dezembro 16, 2024.

  1. karolix1279

    karolix1279 Guest

    According to docs:

    1. Set the ngCspNonce attribute on the root application element as . Use this approach if you have access to server-side templating that can add the nonce both to the header and the index.html when constructing the response.
    2. Provide the nonce using the CSP_NONCE injection token. Use this approach if you have access to the nonce at runtime and you want to be able to cache the index.html.
    ​

    However with new engine AngularNodeAppEngine i have no clue what should i do to achive this.

    Continue reading...

Compartilhe esta Página