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

Revert batch tally sheet generation since @react-pdf/renderer would require us to relax our CSP #1481

Conversation

arsalansufi
Copy link
Contributor

@arsalansufi arsalansufi commented May 12, 2022

Reverts #1475

Alas, it was too good to be true. @react-pdf/renderer's dependencies use eval internally and would require us to relax our CSP policy. This is a deal breaker for us (and has been for others as well - see diegomura/react-pdf#510). We didn't catch this during local development because we're not setting the same strict CSP on localhost. (A separate issue for us to explore, though setting a strict CSP on localhost may be hard.)

staging-error

We can roll this change back out with another PDF generation tool, potentially the jsPDF library that we're already using in Arlo.

More context in this Slack thread: https://votingworks.slack.com/archives/CKCVA0F9S/p1652317620466379

… sheets for record keeping by hand (#1475)"

This reverts commit 7778562.
@eventualbuddha
Copy link
Contributor

🙈 🙉 🙊

@arsalansufi arsalansufi merged commit b06e899 into main May 12, 2022
@arsalansufi arsalansufi deleted the revert-1475-1437-generate-batch-tally-sheets-for-hand-record-keeping branch May 12, 2022 16:18
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