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

fix(print): Move Javascript to <script> element due to CSP #148

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

jimwashbrook
Copy link
Collaborator

The print button wasn't working when hosted on PT, due to the content security policy.

This PR:

  1. Removes the in-line window.print() functionality
  2. Moves it to a separate script element, with a nonce (to pass the CSP)

Copy link

@jimwashbrook jimwashbrook merged commit 132bd08 into Development Aug 28, 2024
3 checks passed
@jimwashbrook jimwashbrook deleted the fix/print-page-csp branch August 28, 2024 08:57
@jimwashbrook jimwashbrook mentioned this pull request Aug 28, 2024
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