From 3e6ed932490c0c83323f0652f1eba095e813ed63 Mon Sep 17 00:00:00 2001 From: "cumphress@corservsolutions.com" Date: Sat, 16 Mar 2024 06:59:41 -0500 Subject: [PATCH] Added note about CSP usage in README. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 15e5d53..1da10e7 100644 --- a/README.md +++ b/README.md @@ -238,6 +238,9 @@ this.printService.printStyle = styleSheet; this.printService.styleSheetFile = fileLocation; ``` +## Content-Security-Policy (CSP) Support +If Angular is configured to use a [CSP Nonce](https://angular.io/api/core/CSP_NONCE), ngx-print will automatically inject the `[printStyle]` CSS rules with this Nonce authorization. + ## Contributors :1st_place_medal: Huge thanks to: [deeplotia](https://github.com/deeplotia) , [Ben L](https://github.com/broem) , [Gavyn McKenzie](https://github.com/gavmck) , [silenceway](https://github.com/silenceway), [Muhammad Ahsan Ayaz](https://github.com/AhsanAyaz), [Core121](https://github.com/Core121) and to all `ngx-print` users