Alcumus/react-doc-viewer

CORS error for viewing PDF

gopia-aroopatech opened this issue · 1 comments

Hi,

We are getting a CORS error while viewing the PDF in React-Doc-Viewer. The same coding was working fine for Doc & Docx. Below is the screenshot. Past one month it was working well. What's wrong with this.

error

const documents = [{ uri: this.state.fileurl, fileType: 'pdf' }];
this.setState({ pdfDoc: documents });

Hi,
I fixed the above issue. This was related to Azure CORS settings.