https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42080 --- Comment #2 from Eric Phetteplace <ephetteplace@cca.edu> --- Created attachment 195226 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195226&action=edit Bug 42080: Invoice PDFs are forced downloads Serve invoice files with a CSP header that prevents XSS instead of with an attachment header that turns them into downloads. Testing plan: - Set AcqEnableFiles preference to Do - Acquisitions > Vendor > Receive Shipment > Create invoice - Finish Receiving > Manage invoice files - Upload an SVG with a <script> tag in it - Click the SVG filename to open it - Inspect browser's console: it should say something about a script being blocked due to the CSP directive -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.