DEV Community

wessisaac
wessisaac

Posted on

How can I substitute the CSP nonce value in Angular's index.html using .net 7 (c#)?

Using Angular 16, we can specify a CSP_NONCE injection token to be used in all inline styles and scripts (as described here). In this example, it gets the nonce from globalThis.myRandomNonceValue but I have no idea how that would be provided from the server.

In another example I've seen

Top comments (0)