Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for Content-Security-Policy through Nonce injection. #184

Merged
merged 2 commits into from
May 5, 2024

Conversation

EpicVoyage
Copy link

As many websites move toward tighter security rules, Content-Security-Policy is gaining prevalence. Angular 16 added support for CSP_NONCE (or ngCspNonce on <app-root>).

This change will use Angular's Nonce to authorize ngx-print's printStyle to work with strict CSPs. It should be used only for static style definitions.

@broem
Copy link
Collaborator

broem commented Mar 15, 2024

This is great! Could you add something in the README.md along with this change to let others know of it?

@EpicVoyage
Copy link
Author

Certainly! Here is the update.

Copy link
Collaborator

@Core121 Core121 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@broem broem merged commit d363a96 into selemxmn:master May 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants