Open saravananpolyglot opened 1 year ago
Can you try by adding prefetch method like below:
<DocViewer documents={[{ uri: s3URL! }]} prefetchMethod="GET" ...
Agreed, this does not work with S3. How does one work with this?
Is there a fix for this???
any fix for this please?
Try adding the fileType
in your docs list object
For example:
const docs = [{ uri: fileUrl, fileType: 'pdf }];
Make sure that your s3 bucket cors permission is allowed from localhost
Check here https://repost.aws/knowledge-center/s3-configure-cors
I have tried to open a pdf file from AWS S3 using S3 signed URL with GET but its not working as doc-viewer creates HEAD request to S3 endpoint.
Even I configured S3 CORS settings.