Skip to content

Sync: dev to main - #381

Open
github-actions[bot] wants to merge 3 commits into
mainfrom
dev
Open

Sync: dev to main#381
github-actions[bot] wants to merge 3 commits into
mainfrom
dev

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Automated PR tracking changes from dev into main.


Note

Medium Risk
Changes resume upload persistence and site-wide framing/CSP headers; scope is limited to resume UX but affects how PDFs are stored and how same-origin embedding is allowed.

Overview
Fixes broken resume previews on settings and admin resume book by introducing ResumePreview, which fetches the PDF with credentials, validates bytes, forces application/pdf, and embeds a blob URL in an iframe instead of framing /api/resume/... directly. Both surfaces also get an Open link to the API URL in a new tab, with loading and error states (including fallback open link).

Upload behavior changes: resume POST still parses with pdf-lib to reject unreadable files, but stores the uploaded bytes unchanged—dropping the optional pdf-lib re-save that could shrink text PDFs but often broke forms/fonts in real files.

Security policy alignment: proxy X-Frame-Options moves from DENY to SAMEORIGIN, and CSP adds blob: to frame-src and relaxes object-src to 'self' blob: so Chrome’s PDF viewer keeps working when CSP enforcement is turned on.

Reviewed by Cursor Bugbot for commit 34dc55c. Bugbot is set up for automated code reviews on this repo. Configure here.

aamoghS and others added 3 commits September 7, 2026 17:47
The edge proxy sent X-Frame-Options: DENY on /api/resume, so Chrome's PDF viewer reported a failed load for a file that was already on disk. Preview now fetches the PDF as a blob, and uploads keep the original bytes instead of a pdf-lib rewrite that can corrupt real resumes.

Co-authored-by: Aamogh <aamoghS@users.noreply.github.com>
Force the blob to application/pdf, reject non-PDF bodies, and add an
Open-in-new-tab path so Chrome's viewer is not the only way to see a
stored resume.

Co-authored-by: Aamogh <aamoghS@users.noreply.github.com>
…sues-9d3d

Fix resume preview failing to load in the browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant