Skip to content

#2439 - Fix PDF files not rendering when embedded - #2439

Open
Akshayrs46 wants to merge 1 commit into
docmost:mainfrom
Akshayrs46:fix/2347-pdf-embedding
Open

#2439 - Fix PDF files not rendering when embedded#2439
Akshayrs46 wants to merge 1 commit into
docmost:mainfrom
Akshayrs46:fix/2347-pdf-embedding

Conversation

@Akshayrs46

Copy link
Copy Markdown

The default-src 'self' directive blocked the browser's built-in PDF viewer from loading internal resources (like blob: URLs), resulting in an empty iframe when rendering PDF attachments. This commit introduces a permissive CSP (omitting default-src) specifically for PDF responses, while maintaining the strict CSP for all other file types.

The default-src 'self' directive blocked the browser's built-in PDF viewer from loading internal resources (like blob: URLs), resulting in an empty iframe when rendering PDF attachments. This commit introduces a permissive CSP (omitting default-src) specifically for PDF responses, while maintaining the strict CSP for all other file types.
@CLAassistant

CLAassistant commented Aug 27, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@Philipinho

Copy link
Copy Markdown
Member

Which browser did you experience this on?

@Akshayrs46 Akshayrs46 changed the title #2347 - Fix PDF files not rendering when embedded #2439 - Fix PDF files not rendering when embedded Aug 27, 2026
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