From f70db19cc6eacf9436a0f92ef302989ec3a038f0 Mon Sep 17 00:00:00 2001 From: Shreyas S Joshi <156504459+BlackPool25@users.noreply.github.com> Date: Thu, 18 Jun 2026 11:55:26 +0530 Subject: [PATCH] fix(document): allow render-pdf to be framed and 503 cleanly on missing PyMuPDF (#2103) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(document): allow render-pdf to be framed and 503 cleanly on missing PyMuPDF Fixes #2101. Two related bugs in the PDF-form library preview flow: 1. SecurityHeadersMiddleware was sending X-Frame-Options: DENY and frame-ancestors 'none' on /api/document/{doc_id}/render-pdf, but static/js/documentLibrary.js embeds the response in an