Skip to content

Commit

Permalink
fix: react-pdf security vuln related to pdf.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilal Meddah committed May 8, 2024
1 parent e18e42f commit 932637c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shared/components/Preview/PDFPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const PDFThumbnail = ({
file={url}
onLoadError={console.error}
renderMode="svg"
options={{ isEvalSupported: false }}
>
<Page
className="pdf-thumbnail-page"
Expand Down

0 comments on commit 932637c

Please sign in to comment.