diff --git a/src/components/Attachments/AttachmentCarousel/extractAttachmentsFromReport.js b/src/components/Attachments/AttachmentCarousel/extractAttachmentsFromReport.js index dae0191b2158..8420a9e7831b 100644 --- a/src/components/Attachments/AttachmentCarousel/extractAttachmentsFromReport.js +++ b/src/components/Attachments/AttachmentCarousel/extractAttachmentsFromReport.js @@ -54,9 +54,10 @@ function extractAttachmentsFromReport(report, reportActions) { const transaction = TransactionUtils.getTransaction(transactionID); if (TransactionUtils.hasReceipt(transaction)) { const {image} = ReceiptUtils.getThumbnailAndImageURIs(transaction); + const isLocalFile = typeof image === 'string' && (image.startsWith('blob:') || image.startsWith('file:')); attachments.unshift({ source: tryResolveUrlFromApiRoot(image), - isAuthTokenRequired: true, + isAuthTokenRequired: !isLocalFile, file: {name: transaction.filename}, isReceipt: true, transactionID,